diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-02-14 15:08:22 -0800 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-02-14 15:08:22 -0800 |
commit | d9d3bfbb65188b8f20bee9b26e7ac8416a0e4235 (patch) | |
tree | 542c1b94eb126d508b681fc7265636f4a3f0fe17 | |
parent | 23578ce0f2d5ceedcdca58c58b390d090572cb4c (diff) |
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>
-rwxr-xr-x | misc-scripts/make-sourceball | 7 |
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}" |