From 122575e94563705ec0b7227fb6afbd53f5244405 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 4 Sep 2018 15:10:00 +0200 Subject: lib/mysql-functions, bin/return-assignment: do not add "<=\infty" dependency - ">=0" dependency is already enough --- bin/return-assignment | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin/return-assignment') 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 -- cgit v1.2.3-70-g09d2