[pacman-dev] [PATCH] makepkg: remove srclinks directory on error exit
Cedric Staniewski
cedric at gmx.ca
Wed Dec 2 13:05:39 EST 2009
When makepkg exits in create_srcpackage(), the (temporary) srclinks
directory is left behind.
Signed-off-by: Cedric Staniewski <cedric at gmx.ca>
---
scripts/makepkg.sh.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index ceaa8a6..b618881 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
}
--
1.6.5.3
More information about the pacman-dev
mailing list