summaryrefslogtreecommitdiff
path: root/find-deprecated-pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'find-deprecated-pkgs')
-rwxr-xr-xfind-deprecated-pkgs8
1 files changed, 4 insertions, 4 deletions
diff --git a/find-deprecated-pkgs b/find-deprecated-pkgs
index a6de8bd..5945f81 100755
--- a/find-deprecated-pkgs
+++ b/find-deprecated-pkgs
@@ -47,7 +47,7 @@ add_parabola_mirrors(){
}
# Sed expresion tested for Nginx, change if needed
-sedexp='s/.*href="//;s/\.pkg.tar.xz.*//'
+sedexp='s/.*href="//;s/\.pkg.tar.xz.*//;s/\.pkg.tar.zst.*//'
# extra sedexps for special characters/symbols
sedexp+=';s/%2B/+/g;s/%3A/:/g;s/%40/@/g'
@@ -84,7 +84,7 @@ mkpkglist(){
arch_pkgs=$(mktemp)
case $1 in
parabola) add_parabola_mirrors
- curl -s ${mirrors[@]} | grep '".*.pkg.tar.xz"' | sed $sedexp > $parabola_pkgs
+ curl -s ${mirrors[@]} | grep '".*.pkg.tar.xz"\|".*.pkg.tar.zst"' | sed $sedexp > $parabola_pkgs
# Separate packages by architecture
for arch in x86_64 i686 armv7h any; do
@@ -95,7 +95,7 @@ mkpkglist(){
cat $parabola_pkgs-{x86_64,i686,armv7h,any} | sort -u > $parabola_pkgs
rm $parabola_pkgs-{x86_64,i686,armv7h,any}
;;
- arch) curl -s ${mirrors[@]} | grep '".*.pkg.tar.xz"' | sed $sedexp > $arch_pkgs
+ arch) curl -s ${mirrors[@]} | grep '".*.pkg.tar.xz"\|".*.pkg.tar.zst"' | sed $sedexp > $arch_pkgs
# Separate packages by architecture
for arch in x86_64 i686 armv7h any; do
@@ -140,7 +140,7 @@ get_libre_pkgs(){
mirrors_parabola+=(https://mirror.grapentin.org/parabola/$r/os/i686/)
mirrors_parabola+=(https://mirror.grapentin.org/parabola/$r/os/armv7h/)
done
- curl -s ${mirrors_parabola[@]} | grep '".*.pkg.tar.xz"' | sed $sedexp > $libre_pkgs
+ curl -s ${mirrors_parabola[@]} | grep '".*.pkg.tar.xz"\|".*.pkg.tar.zst"' | sed $sedexp > $libre_pkgs
for arch in x86_64 i686 armv7h any; do
grep $arch$ $libre_pkgs | for f in $(</dev/stdin); do
echo "${f%-*-*-*} $arch" >> $libre_pkgs-$arch