Use clean-chroot with clean=2 to remove the chroot instead of duplicating
some of the code
This commit is contained in:
parent
e3e716a021
commit
e0db90a164
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155145
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue