pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/scripts



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon May  5 06:31:29 UTC 2025

Modified Files:
        pkgsrc/mk/scripts: genindex.awk

Log Message:
mk: print a warning when a package could not be resolved

Do not count it, do not add a bogus line to the index for it


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/mk/scripts/genindex.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/scripts/genindex.awk
diff -u pkgsrc/mk/scripts/genindex.awk:1.12 pkgsrc/mk/scripts/genindex.awk:1.13
--- pkgsrc/mk/scripts/genindex.awk:1.12 Mon May  5 06:19:55 2025
+++ pkgsrc/mk/scripts/genindex.awk      Mon May  5 06:31:28 2025
@@ -1,5 +1,5 @@
 #!/usr/bin/awk -f
-# $NetBSD: genindex.awk,v 1.12 2025/05/05 06:19:55 wiz Exp $
+# $NetBSD: genindex.awk,v 1.13 2025/05/05 06:31:28 wiz Exp $
 #
 # Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -232,7 +232,7 @@ END {
     }
     close(builddependsfile);
 
-    printf("Generated INDEX file\n");
+    printf("Generating INDEX file\n");
 
 # Output format:
 #  package-name|package-path|installation-prefix|comment| \
@@ -241,6 +241,10 @@ END {
 
     pkgcnt = 0;
     for (toppkg in topdepends){
+       if (length(pkgdir2name[toppkg]) < 1) {
+           printf("\twarning: package %s not found\n", toppkg);
+           continue;
+       }
        pkgcnt++;
        printf("%s|", pkgdir2name[toppkg]) | indexf;
        printf("%s|", toppkg) | indexf;



Home | Main Index | Thread Index | Old Index