pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/pkgformat/pkg Drop redundant dependency patterns. T...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e12cd9a25f66
branches: trunk
changeset: 362612:e12cd9a25f66
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri May 19 14:58:51 2017 +0000
description:
Drop redundant dependency patterns. The normal reduction logic doesn't
work for glob expressions, so multiple generic patterns would not be
reduced.
diffstat:
mk/pkgformat/pkg/reduce-depends.awk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 3a66e9dc540a -r e12cd9a25f66 mk/pkgformat/pkg/reduce-depends.awk
--- a/mk/pkgformat/pkg/reduce-depends.awk Fri May 19 14:58:02 2017 +0000
+++ b/mk/pkgformat/pkg/reduce-depends.awk Fri May 19 14:58:51 2017 +0000
@@ -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 @@
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