aboutsummaryrefslogtreecommitdiff
path: root/Functions/RPM
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/RPM')
-rw-r--r--Functions/RPM8
1 files changed, 4 insertions, 4 deletions
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() {