summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-22 22:20:16 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-22 22:20:16 +0100
commit98113d63c9438eb60c89989edcb57f8239f99456 (patch)
tree89d99fd76621ca2d1ef368413f8aa2617746371c /misc-scripts/make-sourceball
parent7da36896293bac0c4632c342d99f9ebae9fd7a29 (diff)
downloaddbscripts-98113d63c9438eb60c89989edcb57f8239f99456.tar.gz
dbscripts-98113d63c9438eb60c89989edcb57f8239f99456.tar.xz
sourceballs: check if source package was really created
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball12
1 files 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