aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild/scripts
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1999-09-11 21:19:32 +0800
committerasami <asami@FreeBSD.org>1999-09-11 21:19:32 +0800
commit24ed629de18ea02332cb0e6790f8a20ca1287a0b (patch)
tree65c701dc7448bbb34926fb05f60250ba08e071d6 /Tools/portbuild/scripts
parente35cdbb0176f4938f0e7c1f4a054aa91ada928ea (diff)
downloadfreebsd-ports-graphics-24ed629de18ea02332cb0e6790f8a20ca1287a0b.tar.gz
freebsd-ports-graphics-24ed629de18ea02332cb0e6790f8a20ca1287a0b.tar.zst
freebsd-ports-graphics-24ed629de18ea02332cb0e6790f8a20ca1287a0b.zip
Remove /var/db/pkg/* *inside* chroot area, not outside.
Diffstat (limited to 'Tools/portbuild/scripts')
-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 8f8702ee92f..27ed80f62f1 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