summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-09-11 13:19:32 +0000
committerasami <asami@FreeBSD.org>1999-09-11 13:19:32 +0000
commit24ed629de18ea02332cb0e6790f8a20ca1287a0b (patch)
tree65c701dc7448bbb34926fb05f60250ba08e071d6 /Tools
parente35cdbb0176f4938f0e7c1f4a054aa91ada928ea (diff)
downloadFreeBSD-ports-24ed629de18ea02332cb0e6790f8a20ca1287a0b.zip
FreeBSD-ports-24ed629de18ea02332cb0e6790f8a20ca1287a0b.tar.gz
Remove /var/db/pkg/* *inside* chroot area, not outside.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/portbuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 8f8702e..27ed80f 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -137,7 +137,7 @@ for dir in ${cleandirs}; do
fi
done
-rm -rf /var/db/pkg/*
+rm -rf ${chroot}/var/db/pkg/*
chroot ${chroot} /sbin/ldconfig -R
chroot ${chroot} /sbin/ldconfig -aout -m /usr/lib/aout
@@ -192,7 +192,7 @@ if [ $noclean = 0 -o $error = 0 ]; then
done
chroot ${chroot} /sbin/ldconfig -R
chroot ${chroot} /sbin/ldconfig -aout -R
- rm -rf /var/db/pkg/*
+ rm -rf ${chroot}/var/db/pkg/*
rm ${chroot}/used/${pkgname}
rmdir ${chroot}/used
fi
OpenPOWER on IntegriCloud