pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Don't suggest to use obsolete f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b97a235b4f08
branches:  trunk
changeset: 396382:b97a235b4f08
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jul 22 22:11:54 2009 +0000

description:
Don't suggest to use obsolete features.

diffstat:

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

diffs (28 lines):

diff -r cece32ae55c7 -r b97a235b4f08 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Jul 22 21:57:43 2009 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Jul 22 22:11:54 2009 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.816 2009/07/22 09:13:49 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.817 2009/07/22 22:11:54 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -7652,7 +7652,7 @@
                        if ($cmd eq "unexec" && $arg =~ m"^(rmdir|\$\{RMDIR\} \%D/)(.*)") {
                                my ($rmdir, $rest) = ($1, $2);
                                if ($rest !~ m"(?:true|\$\{TRUE\})") {
-                                       $line->log_warning("Please use \"\@dirrm\" instead of \"\@unexec rmdir\".");
+                                       $line->log_warning("Please remove this line. It is no longer necessary.");
                                }
 
                        } elsif (($cmd eq "exec" || $cmd eq "unexec")) {
@@ -7669,7 +7669,7 @@
                        } elsif ($cmd eq "dirrm") {
                                $line->log_warning("\@dirrm is obsolete. Please remove this line.");
                                $line->explain_warning(
-"Directories are removed automatically when empty.",
+"Directories are removed automatically when they are empty.",
 "When a package needs an empty directory, it can use the \@pkgdir",
 "command in the PLIST");
 



Home | Main Index | Thread Index | Old Index