pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add another fix to previous; reverse the lines in t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/41bed94d7594
branches:  trunk
changeset: 473117:41bed94d7594
user:      tv <tv%pkgsrc.org@localhost>
date:      Fri Apr 16 14:27:38 2004 +0000

description:
Add another fix to previous; reverse the lines in the output.  From
pkg_delete, recursion is depth-first, which is wrong for "make update".
Instead, make sure that "closer" dependencies are at the top of the file.

diffstat:

 mk/bsd.pkg.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r cff334dfe460 -r 41bed94d7594 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Fri Apr 16 14:04:40 2004 +0000
+++ b/mk/bsd.pkg.mk     Fri Apr 16 14:27:38 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1443 2004/04/15 15:37:39 tv Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1444 2004/04/16 14:27:38 tv Exp $
 #
 # This file is in the public domain.
 #
@@ -3592,7 +3592,10 @@
 
 ${DLIST}: ${WRKDIR}
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
-       { ${PKG_DELETE} -n "${PKGWILDCARD}" 2>&1 | grep '^      ' || ${TRUE}; } > ${DLIST}
+       { ${PKG_DELETE} -n "${PKGWILDCARD}" 2>&1 |                      \
+               grep '^ ' |                                             \
+               ${AWK} '{ l[NR]=$$0 } END { for (i=NR;i>0;--i) print l[i] }' \
+       || ${TRUE}; } > ${DLIST}
 
 # The 'info' target can be used to display information about a package.
 .PHONY: info



Home | Main Index | Thread Index | Old Index