diff options
author | Erich Eckner <git@eckner.net> | 2020-01-03 13:34:33 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-03 13:34:33 +0100 |
commit | a30fbd561f1f5a77966d74edb39a82706fa2b2d6 (patch) | |
tree | 04b1f3f828a3c6df1b065b8685a75d5e33d349e3 | |
parent | d0491aea356ab8a49a1437575ff1b2055f06e8b5 (diff) | |
download | archlinuxewe-a30fbd561f1f5a77966d74edb39a82706fa2b2d6.tar.xz |
archPackagesUpdate: do not rebuild all old xz packages just because they're not zst
-rwxr-xr-x | archPackagesUpdate | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate index db5d47bbf..2330c4f65 100755 --- a/archPackagesUpdate +++ b/archPackagesUpdate @@ -337,17 +337,21 @@ if ${aufRechenknecht}; then printf '%s\n' "${singleArch}" else if [ "${repo}" == 'releng' ]; then - [ ! -e "${pkgDir32}/${pkgFile}" ] && printf '%s\n' "${singleArch}" + [ ! -e "${pkgDir32}/${pkgFile}" ] \ + && [ ! -e "${pkgDir32}/${pkgFile%.zst}.xz" ] \ + && printf '%s\n' "${singleArch}" fi [ "${singleArch}" == "any" ] && \ for dir in ${pkgDir}/*; do [ ! -d "${dir}" ] && continue - [ ! -e "${dir}/${pkgFile}" ] && printf '%s\n' "${singleArch}" + [ ! -e "${dir}/${pkgFile}" ] \ + && [ ! -e "${dir}/${pkgFile%.zst}.xz" ] \ + && printf '%s\n' "${singleArch}" done - if [ ! -e "${pkgDir}/${singleArch}/${pkgFile}" ]; then - printf '%s\n' "${singleArch}" - fi + [ ! -e "${pkgDir}/${singleArch}/${pkgFile}" ] \ + && [ ! -e "${pkgDir}/${singleArch}/${pkgFile%.zst}.xz" ] \ + && printf '%s\n' "${singleArch}" fi done |