diff options
Diffstat (limited to 'src/abslibre-tools/librestage')
-rwxr-xr-x | src/abslibre-tools/librestage | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/abslibre-tools/librestage b/src/abslibre-tools/librestage index beeb240..62a3f14 100755 --- a/src/abslibre-tools/librestage +++ b/src/abslibre-tools/librestage @@ -61,7 +61,7 @@ main() { # Load configuration load_files libretools - check_vars libretools WORKDIR ARCHES || return 1 + check_vars libretools WORKDIR || return 1 load_files makepkg # for PKGDEST, SRCDEST, and SRCPKGDEST, which are optional load_files librefetch # for MIRRORS, which is optional SRCPKGPOOL="$WORKDIR/staging/sources/parabola" @@ -74,10 +74,14 @@ main() { slock 8 "${WORKDIR}/staging.lock" \ 'Waiting for a shared lock on the staging directory' - # Look for makepkg output - local CARCH _pkgname pkgfile - for CARCH in "${ARCHES[@]}" any; do - for _pkgname in "${pkgname[@]}" "${pkgname[@]/%/-debug}"; do + # Look for (libre)makepkg output + local CARCH _pkgname pkgnames pkgfile + for CARCH in "${arch[@]}"; do + # This supports both pacman <= 5.0.1 pkgname-debug + # packages and pacman-git pkgbase-debug packages. + pkgnames=("${pkgname[@]}" "${pkgname[@]/%/-debug}") + in_array "$pkgbase" "${pkgname[@]}" || pkgnames+=("${pkgbase}-debug") + for _pkgname in "${pkgnames[@]}"; do if ! pkgfile=$(find_cached_package "$_pkgname" "$(get_full_version "$_pkgname")" "$CARCH"); then continue fi |