summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbumpPkgrel14
1 files changed, 10 insertions, 4 deletions
diff --git a/bumpPkgrel b/bumpPkgrel
index 71dac4f45..e867fb345 100755
--- a/bumpPkgrel
+++ b/bumpPkgrel
@@ -25,13 +25,19 @@ fi
pin_dependency() {
sed '
- s/>\?=.*$//
- /^$/d
+ s/^\(\S\+\)>\?=\(\S\+\)$/\1 \2/
+ t
+ s/^\S\+$/\0 BOGUS/
+ t
+ d
' \
| sort -k1,1 \
- | join -1 1 -2 2 - "${provided}" \
+ | join -1 1 -2 2 -a 1 -e EMPTY -o 1.1,1.2,2.1 - "${provided}" \
+ | sed '
+ s/ \(\S\+\) EMPTY$/ \1 \1/
+ ' \
| sed '
- s/^\(\S\+\) \(\S\+\)$/'"${1}'"'\1=\2'"'"'/
+ s/^\(\S\+\) \S\+ \(\S\+\)$/'"${1}'"'\1=\2'"'"'/
s/^\(\s*'"'"'glibc\)=/\1>=/
t
d