Use clean-chroot with clean=2 to remove the chroot instead of duplicating

some of the code
This commit is contained in:
Kris Kennaway 2006-02-03 20:09:35 +00:00
parent e3e716a021
commit e0db90a164
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155145

View file

@ -52,9 +52,5 @@ fi
# Clean up the tmpdir
for i in ${tmpdir}/${branch}/chroot/*; do
${pb}/scripts/clean-chroot ${arch} ${branch} ${i} 0
if ! rm -rf $i > /dev/null 2>&1; then
chflags -R noschg ${i} > /dev/null 2>&1
rm -rf ${i} > /dev/null 2>&1
fi
${pb}/scripts/clean-chroot ${arch} ${branch} ${i} 2
done