From d9d3bfbb65188b8f20bee9b26e7ac8416a0e4235 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sat, 14 Feb 2009 15:08:22 -0800 Subject: Add repo/arch to make-sourceball log path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original-work-by: Eric BĂ©langer Signed-off-by: Aaron Griffin --- misc-scripts/make-sourceball | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'misc-scripts/make-sourceball') 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}" -- cgit v1.2.3-24-g4f1b