aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-09-11 13:19:32 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-09-11 13:19:32 +0000
commit4e920fa436007e2e3664f5054c918e7149a87955 (patch)
tree3b74f428729c9d7819f1163dfa93b36f8feb6b7b /Tools
parenta780b738bc875890a5a3d180c35446b64f089311 (diff)
downloadports-4e920fa436007e2e3664f5054c918e7149a87955.tar.gz
ports-4e920fa436007e2e3664f5054c918e7149a87955.zip
Remove /var/db/pkg/* *inside* chroot area, not outside.
Notes
Notes: svn path=/head/; revision=21663
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 8f8702ee92f4..27ed80f62f12 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