index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-04 15:10:00 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-04 15:10:00 +0200 |
commit | 122575e94563705ec0b7227fb6afbd53f5244405 (patch) | |
tree | 2b207c4cd2f875cf652ec9c4ea1530cfcbcd97ae /bin/return-assignment | |
parent | e8989364d703974ce2b968a0c2f2249a61f423f2 (diff) |
-rwxr-xr-x | bin/return-assignment | 12 |
diff --git a/bin/return-assignment b/bin/return-assignment index b1bd51e..7185b97 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -557,10 +557,14 @@ while read -r package_id package_name; do t h s/$/\t>=\t'"${min_version}"'/ - p - g - s/$/\t<=\t'"${max_version}"'/ - ' | \ + '"$( + if [ "${lib}" = 'provides' ]; then + printf '%s\n' \ + 'p' \ + 'g' \ + 's/$/\t<=\t'"${max_version}"'/' + fi + )" | \ sed ' s/\(\s[0-9]\+\):\(\S\+\)$/\1\t\2/ t coda |