pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/pkgformat/pkg



Module Name:    pkgsrc
Committed By:   joerg
Date:           Fri May 19 14:58:51 UTC 2017

Modified Files:
        pkgsrc/mk/pkgformat/pkg: reduce-depends.awk

Log Message:
Drop redundant dependency patterns. The normal reduction logic doesn't
work for glob expressions, so multiple generic patterns would not be
reduced.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mk/pkgformat/pkg/reduce-depends.awk

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

Modified files:

Index: pkgsrc/mk/pkgformat/pkg/reduce-depends.awk
diff -u pkgsrc/mk/pkgformat/pkg/reduce-depends.awk:1.3 pkgsrc/mk/pkgformat/pkg/reduce-depends.awk:1.4
--- pkgsrc/mk/pkgformat/pkg/reduce-depends.awk:1.3      Wed Oct  8 10:04:45 2014
+++ pkgsrc/mk/pkgformat/pkg/reduce-depends.awk  Fri May 19 14:58:51 2017
@@ -1,6 +1,6 @@
 #!/usr/bin/awk -f
 #
-# $NetBSD: reduce-depends.awk,v 1.3 2014/10/08 10:04:45 jperkin Exp $
+# $NetBSD: reduce-depends.awk,v 1.4 2017/05/19 14:58:51 joerg Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -81,6 +81,9 @@ BEGIN {
                        print "ERROR: [" PROGNAME "] invalid dependency pattern: " ARGV[i] | ERRCAT
                        exit 1
                }
+               if (pattern_seen[pattern] == 1)
+                       continue
+               pattern_seen[pattern] = 1
                cmd = TEST " -d " dir
                if (system(cmd) == 0) {
                        cmd = "cd " dir " && " PWD_CMD



Home | Main Index | Thread Index | Old Index