pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files PKGREVISION does not need the :...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a27561acc8b7
branches:  trunk
changeset: 514133:a27561acc8b7
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jun 08 07:11:26 2006 +0000

description:
PKGREVISION does not need the :Q operator. The various *_MSG shell
commands may be hidden with "@".

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r 8590a8762d23 -r a27561acc8b7 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Jun 08 07:10:19 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Jun 08 07:11:26 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.609 2006/06/06 16:00:49 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.610 2006/06/08 07:11:26 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -1135,6 +1135,11 @@
 #== End of PkgLint::FileUtil ==============================================
 
 package PkgLint::Type;
+#==========================================================================
+# A Type in pkglint is a combination of a data type and a permission
+# specification. Further details can be found in the chapter ``The pkglint
+# type system'' of the pkglint book.
+#==========================================================================
 
 BEGIN {
        import PkgLint::Util qw(
@@ -1218,6 +1223,11 @@
 #== End of PkgLint::Type ==================================================
 
 package PkgLint::VarUseContext;
+#==========================================================================
+# This class represents the various contexts in which make(1) variables can
+# appear in pkgsrc. Further details can be found in the chapter ``The
+# pkglint type system'' of the pkglint book.
+#==========================================================================
 
 BEGIN {
        import PkgLint::Util qw(
@@ -2635,7 +2645,7 @@
                FileMode Filename
                Identifier
                Pathname
-               PkgName
+               PkgName PkgRevision
                RelativePkgDir RelativePkgPath
                URL UserGroupName
                Version
@@ -3366,7 +3376,10 @@
 
        use constant hidden_shell_commands => array_to_hash(qw(
                ${DO_NADA}
-               ${ECHO} ${ECHO_MSG} ${ECHO_N}
+               ${ECHO} ${ECHO_MSG} ${ECHO_N} ${ERROR_CAT} ${ERROR_MSG}
+               ${PHASE_MSG}
+               ${STEP_MSG}
+               ${WARNING_CAT} ${WARNING_MSG}
        ));
 
        if ($rest =~ s/^([-@]*)(?:\$\{_PKG_SILENT\}\$\{_PKG_DEBUG\})?//) {



Home | Main Index | Thread Index | Old Index