From 98113d63c9438eb60c89989edcb57f8239f99456 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 22 Nov 2010 22:20:16 +0100 Subject: sourceballs: check if source package was really created --- misc-scripts/make-sourceball | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index 1dbb655..9a43376 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -47,17 +47,25 @@ create_srcpackage() { msg "Creating source tarball for $packagename-$pkgver-$pkgrel" fi + local line /usr/bin/makepkg --allsource --ignorearch > "$WORKDIR/makepkg.log" 2>&1 if [ $? -ne 0 ]; then error "Failed to download source for $packagename-$pkgver-$pkgrel ($reponame-$arch)" - local line while read line; do msg2 "${line}" done < "$WORKDIR/makepkg.log" return 1 fi - mv "${packagename}-${pkgver}-${pkgrel}${SRCEXT}" "${FTP_BASE}/${SRCPOOL}" + if [ -f "${packagename}-${pkgver}-${pkgrel}${SRCEXT}" ]; then + mv "${packagename}-${pkgver}-${pkgrel}${SRCEXT}" "${FTP_BASE}/${SRCPOOL}" + else + error "Source package not found: ${packagename}-${pkgver}-${pkgrel}${SRCEXT}" + while read line; do + msg2 "${line}" + done < "$WORKDIR/makepkg.log" + return 1 + fi popd >/dev/null -- cgit v1.2.3-24-g4f1b