diff options
author | Erich Eckner <git@eckner.net> | 2020-10-12 20:58:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-10-12 20:58:14 +0200 |
commit | 6e6feddcb9fe085b2a0989055f1405eade3599ef (patch) | |
tree | d5b5bf5607ec31435729daea128768e16c697f7f /archPackagesUpdate | |
parent | 47bf4ca9cfd60e66fd933360875ef0e8a8d192c1 (diff) | |
download | archlinuxewe-6e6feddcb9fe085b2a0989055f1405eade3599ef.tar.xz |
archPackagesUpdate: find "any" packages, too
Diffstat (limited to 'archPackagesUpdate')
-rwxr-xr-x | archPackagesUpdate | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index 475f29638..7a4a5aab4 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -307,36 +307,40 @@ if ${aufRechenknecht}; then available_packages='' else available_packages=$( - curl -Ss 'https://arch.eckner.net/os/' \ - | sed ' - s@^.*<a href="\([^/"]\+\)/">\1/</a>.*$@\1@ - /^\.\.$/d - /^any$/d - t - d - ' \ - | while read -r arch; do - curl -Ss 'https://arch.eckner.net/os/'"${arch}"'/archlinuxewe.db.tar.gz' \ + { + curl -Ss 'https://arch.eckner.net/os/' \ + | sed ' + s@^.*<a href="\([^/"]\+\)/">\1/</a>.*$@\1@ + /^\.\.$/d + /^any$/d + t + d + ' \ + | while read -r arch; do + curl -Ss 'https://arch.eckner.net/os/'"${arch}"'/archlinuxewe.db.tar.gz' \ + | tar -Oxzf - \ + | sed -n ' + /^%FILENAME%$/ { + N + s@^%FILENAME%\n@archlinuxewe/'"${arch}"'/@ + T + s@^\([^/]\+/\)[^/]\+\(/[^/]\+-any\.pkg\.tar\.zst\)$@\0\n\1any\2@ + p + } + ' + done + curl -Ss 'https://mirror.archlinux32.org/x86_64/releng/releng.db.tar.gz' \ | tar -Oxzf - \ | sed ' /^%FILENAME%$/ { N - s@^%FILENAME%\n@archlinuxewe/'"${arch}"'/@ + s@^%FILENAME%\n@releng/x86_64/@ t } d ' - done - curl -Ss 'https://mirror.archlinux32.org/x86_64/releng/releng.db.tar.gz' \ - | tar -Oxzf - \ - | sed ' - /^%FILENAME%$/ { - N - s@^%FILENAME%\n@releng/x86_64/@ - t - } - d - ' + } \ + | sort -u ) fi |