pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Oops. Debugging messages should...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/59f27af22075
branches:  trunk
changeset: 516304:59f27af22075
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Jul 18 20:37:31 2006 +0000

description:
Oops. Debugging messages should only appear when -D<anything> is set on
the command line.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9600571c771a -r 59f27af22075 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Jul 18 19:55:47 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue Jul 18 20:37:31 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.655 2006/07/18 18:14:33 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.656 2006/07/18 20:37:31 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -2699,7 +2699,7 @@
                return "unknown";
        }
 
-       $line->log_debug("Don't know the file type of ${fname}.");
+       $opt_debug_misc and $line->log_debug("Don't know the file type of ${fname}.");
 
        return "unknown";
 }



Home | Main Index | Thread Index | Old Index