index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/return-assignment | 12 | ||||
-rwxr-xr-x | lib/mysql-functions | 1 |
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 diff --git a/lib/mysql-functions b/lib/mysql-functions index e3e5e46..2537311 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -350,6 +350,7 @@ mysql_generate_package_metadata() { p g s/$/\t<=\t'"${max_version}"'/ + /^\S\+depends\s/d :split_epoch s/\(\s[0-9]\+\):\(\S\+\)$/\1\t\2/ t |