Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorMichael Straube <straubem@gmx.de>2017-04-12 16:53:53 +0200
committerAllan McRae <allan@archlinux.org>2017-04-17 10:50:41 +1000
commit4f2fea240d3039294f6614003206a3dd1f67cfc5 (patch)
treee0e7cfb79f5ffcba18c3924e46ec1af5069de757 /scripts/makepkg.sh.in
parent3c013f68ac06d791830fd722b17bc771df47d436 (diff)
makepkg: clean up pkgver and prepare log files
Delete log files for the pkgver and prepare functions if -c,--clean is passed. Fixes FS#51039 and FS#51075 Includes patch submitted by Christian Braun. Signed-off-by: Michael Straube <straubem@gmx.de> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 29408929..0218e13b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -137,6 +137,12 @@ clean_up() {
if [[ -n $pkgbase ]]; then
local fullver=$(get_full_version)
# Can't do this unless the BUILDSCRIPT has been sourced.
+ if (( PKGVERFUNC )); then
+ rm -f "${pkgbase}-${fullver}-${CARCH}-pkgver.log"*
+ fi
+ if (( PREPAREFUNC )); then
+ rm -f "${pkgbase}-${fullver}-${CARCH}-prepare.log"*
+ fi
if (( BUILDFUNC )); then
rm -f "${pkgbase}-${fullver}-${CARCH}-build.log"*
fi