stow_funcs: check for file and links before dirs while stowning in the chroot.

This commit is contained in:
Juan RP 2010-05-13 15:28:17 +02:00
parent 8f5898fa63
commit 65619596d0

View file

@ -104,10 +104,7 @@ stow_pkg_real()
elif [ -d "$XBPS_MASTERDIR/$lfile" ]; then
continue
fi
if [ -d "$i" ]; then
mkdir -p $XBPS_MASTERDIR/$lfile
elif [ -f "$i" -o -h "$i" ]; then
if [ -f "$i" -o -h "$i" ]; then
# Always copy the pkg metadata flist file.
if [ "$(basename $i)" = "flist" ]; then
cp -dp $i $XBPS_MASTERDIR/$lfile
@ -140,6 +137,8 @@ stow_pkg_real()
# full path.
ln -sf $DESTDIR/$lfile $XBPS_MASTERDIR/$lfile
fi
elif [ -d "$i" ]; then
mkdir -p $XBPS_MASTERDIR/$lfile
fi
done