pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools pkglint*: Start sentence with a capital letter



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18b8b4ead53d
branches:  trunk
changeset: 369631:18b8b4ead53d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Oct 02 14:41:21 2017 +0000

description:
pkglint*: Start sentence with a capital letter

>From Thomas Orgis in private mail.

diffstat:

 pkgtools/pkglint/files/pkglint.go           |  2 +-
 pkgtools/pkglint4/files/PkgLint/Logging.pm  |  4 ++--
 pkgtools/pkglint4/files/doc/chap.design.xml |  4 ++--
 pkgtools/pkglint4/files/pkglint.t           |  6 +++---
 4 files changed, 8 insertions(+), 8 deletions(-)

diffs (76 lines):

diff -r 548e60fd6c4f -r 18b8b4ead53d pkgtools/pkglint/files/pkglint.go
--- a/pkgtools/pkglint/files/pkglint.go Mon Oct 02 14:23:40 2017 +0000
+++ b/pkgtools/pkglint/files/pkglint.go Mon Oct 02 14:41:21 2017 +0000
@@ -163,7 +163,7 @@
                                G.errors, ifelseStr(G.errors == 1, "error", "errors"),
                                G.warnings, ifelseStr(G.warnings == 1, "warning", "warnings"))
                } else {
-                       io.WriteString(G.logOut, "looks fine.\n")
+                       io.WriteString(G.logOut, "Looks fine.\n")
                }
                if G.explanationsAvailable && !G.opts.Explain {
                        fmt.Fprint(G.logOut, "(Run \"pkglint -e\" to show explanations.)\n")
diff -r 548e60fd6c4f -r 18b8b4ead53d pkgtools/pkglint4/files/PkgLint/Logging.pm
--- a/pkgtools/pkglint4/files/PkgLint/Logging.pm        Mon Oct 02 14:23:40 2017 +0000
+++ b/pkgtools/pkglint4/files/PkgLint/Logging.pm        Mon Oct 02 14:41:21 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Logging.pm,v 1.1 2015/11/25 16:42:21 rillig Exp $
+# $NetBSD: Logging.pm,v 1.2 2017/10/02 14:41:21 wiz Exp $
 #
 # Subroutines for printing messages to the user in a common format.
 # The subroutines all have the parameters C<$fname>,
@@ -122,7 +122,7 @@
                if ($errors != 0 || $warnings != 0) {
                        print("$errors errors and $warnings warnings found." . ($explain_flag ? "" : " (Use -e for more details.)") . "\n");
                } else {
-                       print "looks fine.\n";
+                       print "Looks fine.\n";
                }
        }
        exit($errors != 0);
diff -r 548e60fd6c4f -r 18b8b4ead53d pkgtools/pkglint4/files/doc/chap.design.xml
--- a/pkgtools/pkglint4/files/doc/chap.design.xml       Mon Oct 02 14:23:40 2017 +0000
+++ b/pkgtools/pkglint4/files/doc/chap.design.xml       Mon Oct 02 14:41:21 2017 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: chap.design.xml,v 1.1 2015/11/25 16:42:21 rillig Exp $ -->
+<!-- $NetBSD: chap.design.xml,v 1.2 2017/10/02 14:41:21 wiz Exp $ -->
 
 <chapter id="design">
 <title>Design goals</title>
@@ -44,7 +44,7 @@
 
        <para>There are only two cases of what the output of
        &pkglint; is. One is a single line containing the text
-       <quote>looks fine.</quote>, the other is a list of diagnostics,
+       <quote>Looks fine.</quote>, the other is a list of diagnostics,
        followed by a summary on the number of diagnostics.</para>
 
        <para>If no warnings are printed, the single line <quote>looks
diff -r 548e60fd6c4f -r 18b8b4ead53d pkgtools/pkglint4/files/pkglint.t
--- a/pkgtools/pkglint4/files/pkglint.t Mon Oct 02 14:23:40 2017 +0000
+++ b/pkgtools/pkglint4/files/pkglint.t Mon Oct 02 14:41:21 2017 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.t,v 1.1 2015/11/25 16:42:21 rillig Exp $
+# $NetBSD: pkglint.t,v 1.2 2017/10/02 14:41:21 wiz Exp $
 #
 
 require 'pkglint.pl';                  # so we can test its internals
@@ -131,7 +131,7 @@
        test_unit($unit, undef, 0, '^usage: pkglint ', '^$');
 
        @ARGV = ('..');
-       test_unit($unit, undef, 0, '^looks fine', '^$');
+       test_unit($unit, undef, 0, '^Looks fine', '^$');
 
        @ARGV = ('.');
        test_unit($unit, undef, 1, '^ERROR:.+how to check', '^$');
@@ -167,7 +167,7 @@
                },
                'mail/getmail' => {
                        stdout_re => <<EOT,
-^looks fine\.\$
+^Looks fine\.\$
 EOT
                        stderr_re => undef,
                        exitcode => 0,



Home | Main Index | Thread Index | Old Index