diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-11-22 22:20:16 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-11-22 22:20:16 +0100 |
commit | 98113d63c9438eb60c89989edcb57f8239f99456 (patch) | |
tree | 89d99fd76621ca2d1ef368413f8aa2617746371c /misc-scripts | |
parent | 7da36896293bac0c4632c342d99f9ebae9fd7a29 (diff) | |
download | dbscripts-98113d63c9438eb60c89989edcb57f8239f99456.tar.gz dbscripts-98113d63c9438eb60c89989edcb57f8239f99456.tar.xz |
sourceballs: check if source package was really created
Diffstat (limited to 'misc-scripts')
-rwxr-xr-x | misc-scripts/make-sourceball | 12 |
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 |