Source-Changes-HG archive

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

[src/trunk]: src/distrib/sets don't match the empty pattern



details:   https://anonhg.NetBSD.org/src/rev/e1333f1cc880
branches:  trunk
changeset: 1029287:e1333f1cc880
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 30 02:30:53 2021 +0000

description:
don't match the empty pattern

diffstat:

 distrib/sets/sets.subr |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ca2f7157d2b1 -r e1333f1cc880 distrib/sets/sets.subr
--- a/distrib/sets/sets.subr    Thu Dec 30 02:14:55 2021 +0000
+++ b/distrib/sets/sets.subr    Thu Dec 30 02:30:53 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sets.subr,v 1.198 2021/12/29 22:22:13 christos Exp $
+#      $NetBSD: sets.subr,v 1.199 2021/12/30 02:30:53 christos Exp $
 #
 
 #
@@ -192,7 +192,7 @@
 # In each file, a record consists of a path and a System Package name,
 # separated by whitespace. E.g.,
 #
-#      # $NetBSD: sets.subr,v 1.198 2021/12/29 22:22:13 christos Exp $
+#      # $NetBSD: sets.subr,v 1.199 2021/12/30 02:30:53 christos Exp $
 #      .                       base-sys-root   [keyword[,...]]
 #      ./altroot               base-sys-root
 #      ./bin                   base-sys-root
@@ -278,7 +278,7 @@
                        }
                }
                function adddebugkernel(line, fname, pat, patlen) {
-                       if (substr(line, 1, patlen) != pat) {
+                       if (pat == "" || substr(line, 1, patlen) != pat) {
                                return 0
                        }
                        split("'"${CONFIGS}"'", configs)



Home | Main Index | Thread Index | Old Index