make-binpkg: pass correct vars as arguments to the signal handler.

This commit is contained in:
Juan RP 2010-05-13 21:21:36 +02:00
parent ea1e29a43c
commit d1791dad60
1 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,8 @@ xbps_make_binpkg()
binpkg_cleanup()
{
local pkgdir="$1" binpkg="$2"
printf "\nInterrupted! removing $binpkg file!\n"
rm -f $pkgdir/$binpkg
exit 1
@ -108,7 +110,7 @@ xbps_make_binpkg_real()
[ ! -d $pkgdir ] && mkdir -p $pkgdir
# Remove binpkg if interrupted...
trap "binpkg_cleanup" INT
trap "binpkg_cleanup $pkgdir $binpkg" INT
echo -n "=> Building $binpkg... "
${fakeroot_cmd} ${fakeroot_cmd_args} \