pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files load_lines returns false on fai...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c27d4933379b
branches:  trunk
changeset: 532904:c27d4933379b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Sep 04 09:34:20 2007 +0000

description:
load_lines returns false on failure, not undef.

diffstat:

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

diffs (19 lines):

diff -r 1417a50c1deb -r c27d4933379b pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Sep 04 08:42:30 2007 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue Sep 04 09:34:20 2007 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.715 2007/08/23 09:47:37 joerg Exp $
+# $NetBSD: pkglint.pl,v 1.716 2007/09/04 09:34:20 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -2619,7 +2619,7 @@
 
                $opt_debug_trace and log_debug(NO_FILE, NO_LINES, "pkg=$pkg");
                my $dirs_mk = load_lines("$cwd_pkgsrcdir/$pkg/dirs.mk", true);
-               assert(defined($dirs_mk), "$pkg/dirs.mk is not readable.");
+               assert($dirs_mk, "$pkg/dirs.mk is not readable.");
 
                foreach my $line (@$dirs_mk) {
                        parseline_mk($line);



Home | Main Index | Thread Index | Old Index