chroot: remove xbps dirs after use.

--HG--
extra : convert_revision : 8ad643a877df8c1d5f583b968210ba4fd5664d3d
This commit is contained in:
Juan RP 2008-10-24 05:03:29 +02:00
parent 247f6a3772
commit 032a0ab8dc
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,7 @@ install_chroot_pkg()
umount_chroot_fs()
{
local fs=
local dir=
for fs in sys proc dev xbps xbps_builddir xbps_destdir; do
[ ! -f $XBPS_MASTERDIR/.${fs}_mount_bind_done ] && continue
@ -93,4 +94,8 @@ umount_chroot_fs()
fi
unset fs
done
for dir in xbps xbps_builddir xbps_destdir; do
[ -d $XBPS_MASTERDIR/$dir ] && rmdir $XBPS_MASTERDIR/$dir
done
}