1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Run chflags if rm -rf of chroot dir fails -- some port may have

left some schg junk around.
This commit is contained in:
Satoshi Asami 1999-09-22 00:58:26 +00:00
parent 1ba68ec84e
commit 1ef91d42b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21869

View File

@ -6,7 +6,12 @@ fi
if [ $(echo $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}' | wc -c)) != 0 ]; then
/sbin/umount -f $(/sbin/mount | grep "$2/.*(read-only)" | awk '{print $3}')
fi
rm -rf $2/*/chroot/*
if ! rm -rf $2/*/chroot/* >/dev/null 2>&1; then
chflags -R noschg $2/*/chroot/*
rm -rf $2/*/chroot/*
fi
scp -p -a $1:$2/scripts/portbuild $2/scripts
md5=$(/sbin/md5 $2/$3/tarballs/bindist.tar | awk '{print $4}')
if [ "$md5" = "$4" ]; then