summaryrefslogtreecommitdiff
path: root/neuesPerlPaket
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-08-30 06:01:57 +0200
committerErich Eckner <git@eckner.net>2021-08-30 06:01:57 +0200
commit0f1a6f4a7605cc8842f6f1860092809bd30a2499 (patch)
tree47357c9fd6eb7dd82bc38159ab64634084bbaabc /neuesPerlPaket
parentbe400e90354dbc867a44fe00a23e7af9617168f9 (diff)
downloadarchlinuxewe-0f1a6f4a7605cc8842f6f1860092809bd30a2499.tar.xz
neuesPerlPaket: -f neu
Diffstat (limited to 'neuesPerlPaket')
-rwxr-xr-xneuesPerlPaket12
1 files changed, 10 insertions, 2 deletions
diff --git a/neuesPerlPaket b/neuesPerlPaket
index eb81a21d8..d46823458 100755
--- a/neuesPerlPaket
+++ b/neuesPerlPaket
@@ -7,9 +7,16 @@ else
update=true
fi
+if [ "x$1" = "x-f" ]; then
+ force=true
+ shift
+else
+ force=false
+fi
+
if [ $# -ne 1 ]
then
- >&2 echo "Verwendung: neuesPerlPaket [-n] cpan-Name"
+ >&2 echo "Verwendung: neuesPerlPaket [-f|-n] cpan-Name"
exit 1
fi
@@ -32,7 +39,8 @@ then
exit 1
fi
-if ls /var/lib/pacman/sync/*.db | \
+if ! ${force} && \
+ ls /var/lib/pacman/sync/*.db | \
grep -v "/\(archlinuxewe\|quarry\)\.db\$" | \
xargs -rn1 tar -Oxz --wildcards "*/desc" -f | \
sed '