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:
parent
9fe27b068a
commit
a6cca6e456
@ -118,6 +118,7 @@ trap_exit() {
|
|||||||
echo
|
echo
|
||||||
error "$@"
|
error "$@"
|
||||||
fi
|
fi
|
||||||
|
[[ -n $srclinks ]] && rm -rf "$srclinks"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user