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>
This commit is contained in:
Cedric Staniewski 2009-12-02 19:05:39 +01:00 committed by Dan McGee
parent 9fe27b068a
commit a6cca6e456
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ trap_exit() {
echo
error "$@"
fi
[[ -n $srclinks ]] && rm -rf "$srclinks"
exit 1
}