summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-06-17 21:42:22 +0200
committerErich Eckner <git@eckner.net>2022-06-17 21:42:27 +0200
commit9f195aea7e6312b53be44fac38ebab18a4bd8ee9 (patch)
treea117c08b1b570d7ecb52800532216686f562eb11
parentcf1ec4e99f7d836f49f10c3743a5ac7da4b984ab (diff)
downloadarchlinuxewe-9f195aea7e6312b53be44fac38ebab18a4bd8ee9.tar.xz
bumpPerl: use perl version from the database - so we don't need to install a recent perl first
-rwxr-xr-xbumpPerl12
1 files changed, 8 insertions, 4 deletions
diff --git a/bumpPerl b/bumpPerl
index 97c96abb3..d36790989 100755
--- a/bumpPerl
+++ b/bumpPerl
@@ -4,10 +4,14 @@ me="$(readlink -f $0)"
cd $(dirname "${me}")
perlMinor=$(
- pacman -Q perl | \
- sed '
- s/^\S\+ //
- '
+ bsdtar -tf /var/lib/pacman/sync/core.db \
+ | sed -n '
+ s@^perl-@@
+ T
+ s@-[0-9]\+/desc$@@
+ T
+ /^[0-9.]\+$/p
+ '
)
perlMajor="${perlMinor%%.*}"
perlMinor="${perlMinor#${perlMajor}.}"