xbps-src: misc tweaks for zap and use void-packages too in chroot ops.
This commit is contained in:
parent
d9ff56e873
commit
77d1837155
|
@ -167,10 +167,9 @@ chroot_handler() {
|
||||||
if [ -n "$XBPS_HOSTDIR" ]; then
|
if [ -n "$XBPS_HOSTDIR" ]; then
|
||||||
_chargs+=" -H $XBPS_HOSTDIR"
|
_chargs+=" -H $XBPS_HOSTDIR"
|
||||||
fi
|
fi
|
||||||
if [ ! -d $XBPS_MASTERDIR/xbps-packages ]; then
|
if [ ! -d $XBPS_MASTERDIR/void-packages ]; then
|
||||||
mkdir -p $XBPS_MASTERDIR/xbps-packages
|
mkdir -p $XBPS_MASTERDIR/void-packages
|
||||||
fi
|
fi
|
||||||
ln -sf xbps-packages $XBPS_MASTERDIR/void-packages
|
|
||||||
_chargs+=" -D ${XBPS_DISTDIR}"
|
_chargs+=" -D ${XBPS_DISTDIR}"
|
||||||
|
|
||||||
[ -z "$action" -a -z "$pkg" ] && return 1
|
[ -z "$action" -a -z "$pkg" ] && return 1
|
||||||
|
|
3
xbps-src
3
xbps-src
|
@ -264,7 +264,8 @@ install_bbootstrap() {
|
||||||
|
|
||||||
masterdir_zap() {
|
masterdir_zap() {
|
||||||
for f in bin boot builddir destdir dev etc home lib lib32 lib64 mnt \
|
for f in bin boot builddir destdir dev etc home lib lib32 lib64 mnt \
|
||||||
opt proc root run sbin sys tmp usr var xbps .xbps_chroot_init; do
|
opt proc root run sbin sys tmp usr var host media xbps \
|
||||||
|
xbps-packages void-packages .xbps_chroot_init; do
|
||||||
if [ -d "$XBPS_MASTERDIR/$f" ]; then
|
if [ -d "$XBPS_MASTERDIR/$f" ]; then
|
||||||
echo "Removing directory $XBPS_MASTERDIR/$f ..."
|
echo "Removing directory $XBPS_MASTERDIR/$f ..."
|
||||||
rm -rf $XBPS_MASTERDIR/$f
|
rm -rf $XBPS_MASTERDIR/$f
|
||||||
|
|
Loading…
Reference in New Issue