From 87e5976c6e01adc61a1699fd418dd601c605b705 Mon Sep 17 00:00:00 2001 From: "Lucas C. Villa Real" Date: Sat, 30 Jun 2018 18:35:28 -0300 Subject: Let RPMFinder handle more than one architecture in a single call to the script. The list of architectures must be separated by commas. With this commit we now retrieve the package name from the rpminfo.net page holding details about the RPM, rather than guessing it based on the filename. This commit also improves version handling and package name aliasing. --- Functions/RPM | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Functions/RPM') diff --git a/Functions/RPM b/Functions/RPM index a166fb0..75d6046 100644 --- a/Functions/RPM +++ b/Functions/RPM @@ -71,10 +71,10 @@ function thirdparty_search_remotedb() { local arch="$2" local distroname="$3" local distrocode="$4" - local result=$(RPMFinder --path="$path" --arch="$arch" --distroname="$distroname" --distrocode="$distrocode") - [ -z "$result" ] && [ "$arch" = "noarch" ] && result=$(RPMFinder --path="$path" --arch="$(uname -m)" --distroname="$distroname" --distrocode="$distrocode") - [ -z "$result" ] && return - echo "$result" + if [ "$arch" = "noarch" ] + then arch="${arch},$(uname -m)" + fi + RPMFinder --path="$path" --arch="$arch" --distroname="$distroname" --distrocode="$distrocode" } function thirdparty_uncompress() { -- cgit v1.1