summaryrefslogtreecommitdiff
path: root/bumpPkgrel
diff options
context:
space:
mode:
Diffstat (limited to 'bumpPkgrel')
-rwxr-xr-xbumpPkgrel35
1 files changed, 1 insertions, 34 deletions
diff --git a/bumpPkgrel b/bumpPkgrel
index 12912aeee..ddda45374 100755
--- a/bumpPkgrel
+++ b/bumpPkgrel
@@ -19,41 +19,8 @@ if [ "x$1" = 'x-p' ]; then
provided="$2"
shift
else
- provided=$(mktemp)
+ provided=$("${0%/*}/liste-verfuegbare-Versionen")
trap 'rm -f "${provided}"' EXIT
-
- find /var/lib/pacman/sync/ -name '*.db' \
- -not -exec tar -Oxzf {} --wildcards '*/desc' \; \
- -not -exec tar -OxJf {} --wildcards '*/desc' \; \
- -not -exec tar -Oxjf {} --wildcards '*/desc' \; \
- -not -exec tar -Oxf {} --wildcards '*/desc' \; \
- 2>/dev/null \
- | sed -n '
- /^%\(NAME\|VERSION\)%$/ {
- N
- s/\n/ /
- p
- }
- /^%PROVIDES%$/,/^$/ {
- /^[^%]/ p
- }
- ' \
- | sed -n '
- s/=/ /
- T no_provides
- p
- d
- :no_provides
- /^%NAME%/ {
- N
- s/^%NAME% \(\S\+\)\n%VERSION% \(\S\+\)-\S\+$/\2 \1/
- T
- p
- }
- ' \
- | sort -k2,2 -k1Vr,1 \
- | uniq -f1 \
- >"${provided}"
fi
pin_dependency() {