1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

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

View File

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