Subject: CVS commit: pkgsrc/mk/bulk
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 01/22/2007 12:24:20
Module Name:	pkgsrc
Committed By:	rillig
Date:		Mon Jan 22 12:24:20 UTC 2007

Modified Files:
	pkgsrc/mk/bulk: bsd.bulk-pkg.mk

Log Message:
A big cleanup:

- The "header" of the build log is always printed, not only when
  PRECLEAN is set.

- The variable "installed" was redundant. Removing it saves 5 lines
  of code.

- When the package is outdated and currently installed, it suffices to
  just run pkg_delete. The "make deinstall" is too expensive and doesn't
  do anything further.

- Completely rewrote the section that deinstalls unneeded packages. It
  seems to me that the pkg_info -Q flag has been introduced after the
  bulk build was initially written, so it wasn't used here.

- A package that doesn't get deinstalled with a simple pkg_delete
  probably has a reason for that. Don't try to run pkg_delete -f after
  it.

- To remove all packages, it isn't necessary to iterate over the
  installed packages. Just pkg_delete -r "*".

- Replaced "required package" with "dependency" in the log messages,
  since that is shorter. Maybe the term "required package" comes from
  the time where packages also depended on shared library versions, so
  that terminology made sense back in 2000. Anyway, that's long ago.


To generate a diff of this commit:
cvs rdiff -r1.132 -r1.133 pkgsrc/mk/bulk/bsd.bulk-pkg.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.