diff options
author | asami <asami@FreeBSD.org> | 1999-09-22 08:58:26 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1999-09-22 08:58:26 +0800 |
commit | 04108ee546eb949af071d1e32047a4152dc0e9aa (patch) | |
tree | 9a046cf3cd236fefa091755b3d8cdda4e8ba7ff9 /Tools/portbuild | |
parent | b6a65ceadbb69435895d164961684e464a0b85db (diff) | |
download | freebsd-ports-gnome-04108ee546eb949af071d1e32047a4152dc0e9aa.tar.gz freebsd-ports-gnome-04108ee546eb949af071d1e32047a4152dc0e9aa.tar.zst freebsd-ports-gnome-04108ee546eb949af071d1e32047a4152dc0e9aa.zip |
Run chflags if rm -rf of chroot dir fails -- some port may have
left some schg junk around.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-x | Tools/portbuild/scripts/setupnode | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/setupnode b/Tools/portbuild/scripts/setupnode index d41a8422bcfd..ff876b6f2f80 100755 --- a/Tools/portbuild/scripts/setupnode +++ b/Tools/portbuild/scripts/setupnode @@ -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 |