summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index 4308c0e..012049a 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -77,12 +77,13 @@ create_srcpackage() {
die -e "\tPackage license (${license[@]}) does not require source tarballs. Doing nothing"
fi
- if ! /usr/bin/makepkg --allsource --ignorearch >"$logpath/$pkgname" 2>&1; then
+ local logfile="$logpath/$pkgname-$reponame-$_arch"
+ if ! /usr/bin/makepkg --allsource --ignorearch >"$logfile" 2>&1; then
popd >/dev/null
- /bin/gzip -9 "$logpath/$pkgname"
+ /bin/gzip -9 "$logfile"
die "\tFailed to download source for $pkgname-$pkgver-$pkgrel ($reponame-$_arch)"
fi
- /bin/rm "$logpath/$pkgname"
+ /bin/rm "$logfile"{,.gz}
local pkg_file="${pkgname}-${pkgver}-${pkgrel}${SRCEXT}"