summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 22:41:17 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-02 22:33:04 -0400
commitebbde88b7c08a5e9fe9ba8aca1ca2ac2dbd1b41d (patch)
tree3efc605e363c3aae52e413a779d3dd60b0cf4933 /src
parentc9c5a69cc2098e999ddb76d8fd282a3fb6334cb1 (diff)
bugfix [2/2]: libredbdiff: Correctly handle multiple provides
Diffstat (limited to 'src')
-rwxr-xr-xsrc/abslibre-tools/libredbdiff4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff
index 50bc78f..924b9f4 100755
--- a/src/abslibre-tools/libredbdiff
+++ b/src/abslibre-tools/libredbdiff
@@ -181,7 +181,9 @@ compare_pkgs() {
"${verarch[$pkgname]}"
fi
elif [[ ${provides[$pkgname]} ]]; then
- for provide in "${provides[$pkgname]}"; do
+ local _provides provide
+ read -r -a _provides <<<"${provides[$pkgname]}"
+ for provide in "${_provides[@]}"; do
if [[ ${verarch["$provide"]} ]]; then
cmp=$(vercmp "${ver[$pkgname]}" "${verarch[$provide]}")
if [[ $cmp -lt 0 ]]; then