diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-20 22:41:17 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-02 22:33:04 -0400 |
commit | ebbde88b7c08a5e9fe9ba8aca1ca2ac2dbd1b41d (patch) | |
tree | 3efc605e363c3aae52e413a779d3dd60b0cf4933 /src/abslibre-tools/libredbdiff | |
parent | c9c5a69cc2098e999ddb76d8fd282a3fb6334cb1 (diff) |
bugfix [2/2]: libredbdiff: Correctly handle multiple provides
Diffstat (limited to 'src/abslibre-tools/libredbdiff')
-rwxr-xr-x | src/abslibre-tools/libredbdiff | 4 |
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 |