stow_funcs: check for file and links before dirs while stowning in the chroot.
This commit is contained in:
parent
8f5898fa63
commit
65619596d0
|
@ -104,10 +104,7 @@ stow_pkg_real()
|
||||||
elif [ -d "$XBPS_MASTERDIR/$lfile" ]; then
|
elif [ -d "$XBPS_MASTERDIR/$lfile" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [ -d "$i" ]; then
|
if [ -f "$i" -o -h "$i" ]; then
|
||||||
mkdir -p $XBPS_MASTERDIR/$lfile
|
|
||||||
|
|
||||||
elif [ -f "$i" -o -h "$i" ]; then
|
|
||||||
# Always copy the pkg metadata flist file.
|
# Always copy the pkg metadata flist file.
|
||||||
if [ "$(basename $i)" = "flist" ]; then
|
if [ "$(basename $i)" = "flist" ]; then
|
||||||
cp -dp $i $XBPS_MASTERDIR/$lfile
|
cp -dp $i $XBPS_MASTERDIR/$lfile
|
||||||
|
@ -140,6 +137,8 @@ stow_pkg_real()
|
||||||
# full path.
|
# full path.
|
||||||
ln -sf $DESTDIR/$lfile $XBPS_MASTERDIR/$lfile
|
ln -sf $DESTDIR/$lfile $XBPS_MASTERDIR/$lfile
|
||||||
fi
|
fi
|
||||||
|
elif [ -d "$i" ]; then
|
||||||
|
mkdir -p $XBPS_MASTERDIR/$lfile
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue