summaryrefslogtreecommitdiff
path: root/bumpPkgrel
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-05 13:22:24 +0200
committerErich Eckner <git@eckner.net>2020-06-05 13:22:24 +0200
commit2f4e91113b654356bdd937510850affcc5891ccd (patch)
tree1eecff8732a8e5c42018316523795255b3ac5625 /bumpPkgrel
parent6fb8f29e8efcef5b34a0da4d6180ef0ef498e93d (diff)
downloadarchlinuxewe-2f4e91113b654356bdd937510850affcc5891ccd.tar.xz
bumpPkgrel: preserve unknown _pinned_dependencies
Diffstat (limited to 'bumpPkgrel')
-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