summaryrefslogtreecommitdiffstats
path: root/misc-scripts
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-15 00:08:22 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-15 00:08:22 +0100
commitd9d3bfbb65188b8f20bee9b26e7ac8416a0e4235 (patch)
tree542c1b94eb126d508b681fc7265636f4a3f0fe17 /misc-scripts
parent23578ce0f2d5ceedcdca58c58b390d090572cb4c (diff)
downloaddbscripts-d9d3bfbb65188b8f20bee9b26e7ac8416a0e4235.tar.gz
dbscripts-d9d3bfbb65188b8f20bee9b26e7ac8416a0e4235.tar.xz
Add repo/arch to make-sourceball log path
Original-work-by: Eric BĂ©langer <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts')
-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}"