diff options
author | Lucas C. Villa Real <lucasvr@gmail.com> | 2018-06-30 18:35:28 -0300 |
---|---|---|
committer | Lucas C. Villa Real <lucasvr@gmail.com> | 2018-06-30 18:35:28 -0300 |
commit | 87e5976c6e01adc61a1699fd418dd601c605b705 (patch) | |
tree | a46a0a55941d8ff403ed400a21ba6dc6bba6a7ff /Functions/RPM | |
parent | 65d2f3f42f762dd2a98d8ebe326f817c5af888f3 (diff) | |
download | ThirdPartyInstallers-87e5976c6e01adc61a1699fd418dd601c605b705.tar.xz |
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.
Diffstat (limited to 'Functions/RPM')
-rw-r--r-- | Functions/RPM | 8 |
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() { |