pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Changed an assertion into a fat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c5c276842b3
branches:  trunk
changeset: 538932:7c5c276842b3
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Feb 21 12:16:09 2008 +0000

description:
Changed an assertion into a fatal error, which is effectively the same,
just without a stack trace. Fixes PR 38074.

diffstat:

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

diffs (19 lines):

diff -r 14fbccf81799 -r 7c5c276842b3 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Feb 21 11:52:21 2008 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Feb 21 12:16:09 2008 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.764 2008/02/14 00:27:19 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.765 2008/02/21 12:16:09 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -3525,7 +3525,7 @@
                # This line is useless
 
        } else {
-               assert(false, "Unknown line format: " . $line->to_string());
+               $line->log_fatal("Unknown line format: " . $line->to_string());
        }
 }
 



Home | Main Index | Thread Index | Old Index