pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk Remove the packages added when pruning files e...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc8fd72dd1cb
branches: trunk
changeset: 491847:cc8fd72dd1cb
user: kristerw <kristerw%pkgsrc.org@localhost>
date: Wed Mar 30 20:21:07 2005 +0000
description:
Remove the packages added when pruning files etc. before starting
the real bulk build. This ensures that the bulk build is started
in a consistent state, regardless of how the pre-build things are
configured.
diffstat:
mk/bulk/pre-build | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 64509ef28482 -r cc8fd72dd1cb mk/bulk/pre-build
--- a/mk/bulk/pre-build Wed Mar 30 20:21:03 2005 +0000
+++ b/mk/bulk/pre-build Wed Mar 30 20:21:07 2005 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: pre-build,v 1.45 2005/03/29 00:55:50 hubertf Exp $
+# $NetBSD: pre-build,v 1.46 2005/03/30 20:21:07 kristerw Exp $
#
# Clean up system to be ready for bulk pkg build
#
@@ -246,6 +246,22 @@
;;
esac
+# Clean out the packages added above so that the real bulk build
+# is started in a consistent state.
+for dbdir in ${PKG_DBDIR} ${DEPOTBASE}; do
+ echo Removing all installed packages in $dbdir
+ if [ -d $dbdir ]; then
+ cd $dbdir
+ for pkg in *
+ do
+ if `pkg_info -K $dbdir -qe $pkg`; then
+ echo pkg_delete -r $pkg
+ pkg_delete -K $dbdir -r $pkg
+ fi
+ done
+ fi
+done
+
# on non-NetBSD, we don't want these to build as they overwrite
# bootstrap-pkgsrc generated files and thus would break the following builds.
Home |
Main Index |
Thread Index |
Old Index