summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Staniewski <cedric@gmx.ca>2009-12-02 19:05:39 +0100
committerDan McGee <dan@archlinux.org>2009-12-13 23:31:06 -0600
commita6cca6e456e9b84362e00b5e5209059a20df965c (patch)
tree40877dc3a4adf41541bb42b993fa679f52f60484
parent9fe27b068ae40a407fd5dd12f974d84499d41ef0 (diff)
downloadpacman-a6cca6e456e9b84362e00b5e5209059a20df965c.tar.xz
makepkg: remove srclinks directory on error exit
When makepkg exits in create_srcpackage(), the (temporary) srclinks directory is left behind. Signed-off-by: Cedric Staniewski <cedric@gmx.ca> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 40283fe2..5bbd8809 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -118,6 +118,7 @@ trap_exit() {
echo
error "$@"
fi
+ [[ -n $srclinks ]] && rm -rf "$srclinks"
exit 1
}