From 59b3b8500c6bf484b9b1ccfc2b88d47a9592e0f4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 5 May 2017 13:17:05 -0400 Subject: librestage: ditch xbs in favor of uploading sourceballs --- src/abslibre-tools/librestage | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/abslibre-tools/librestage b/src/abslibre-tools/librestage index b8278d2..beeb240 100755 --- a/src/abslibre-tools/librestage +++ b/src/abslibre-tools/librestage @@ -59,17 +59,12 @@ main() { return 1 fi - if ! xbs -b abslibre status; then - error "There are uncommitted changes in the current directory" - return 1 - fi - # Load configuration load_files libretools - # ABSLIBREDEST is used by xbs release-client - check_vars libretools WORKDIR ARCHES ABSLIBREDEST || return 1 - load_files makepkg # for PKGDEST and SRCDEST, which are optional + check_vars libretools WORKDIR ARCHES || 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" # Load the PKGBUILD load_PKGBUILD @@ -94,7 +89,6 @@ main() { die "PACKAGER wes not set when building package" fi - xbs -b abslibre release-client "$repo" "$CARCH" mkdir -p "${WORKDIR}/staging/${repo}" if cp "$pkgfile" "${WORKDIR}/staging/${repo}/${pkgfile##*/}"; then msg2 "%s staged on [%s]" "$_pkgname" "$repo" @@ -104,6 +98,18 @@ main() { return 1 fi done + if pkgfile=$(find_cached_srcpackage "$pkgbase" "$(get_full_version)" "$CARCH"); then + msg 'Found source package: %s' "${pkgfile##*/}" + + mkdir -p "$SRCPKGPOOL" + if cp "$pkgfile" "$SRCPKGPOOL/${pkgfile##*/}"; then + msg2 "%s staged on [%s]" "$pkgbase" sources + staged=true + else + error "Can't put %s on [%s]" "$pkgbase" sources + return 1 + fi + fi done # Look for librefetch output -- cgit v1.2.3-54-g00ecf