Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/check-portability pkgtools/check-portability:...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6da6fe074e33
branches:  trunk
changeset: 432639:6da6fe074e33
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 23 22:18:10 2020 +0000

description:
pkgtools/check-portability: update to 20.1.1

Changes since 20.1.0:

Fixed off-by-one error in diagnostic for test ==.

diffstat:

 pkgtools/check-portability/Makefile                    |  4 ++--
 pkgtools/check-portability/files/check-portability.c   |  4 ++--
 pkgtools/check-portability/files/testdata/zzz_expected |  8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (52 lines):

diff -r 5cc4231747d9 -r 6da6fe074e33 pkgtools/check-portability/Makefile
--- a/pkgtools/check-portability/Makefile       Sat May 23 22:12:31 2020 +0000
+++ b/pkgtools/check-portability/Makefile       Sat May 23 22:18:10 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2020/04/19 12:05:14 rillig Exp $
+# $NetBSD: Makefile,v 1.10 2020/05/23 22:18:10 rillig Exp $
 
-PKGNAME=       check-portability-20.1.0
+PKGNAME=       check-portability-20.1.1
 CATEGORIES=    pkgtools
 DISTFILES=     # none
 
diff -r 5cc4231747d9 -r 6da6fe074e33 pkgtools/check-portability/files/check-portability.c
--- a/pkgtools/check-portability/files/check-portability.c      Sat May 23 22:12:31 2020 +0000
+++ b/pkgtools/check-portability/files/check-portability.c      Sat May 23 22:18:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.15 2020/05/23 22:12:31 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.16 2020/05/23 22:18:11 rillig Exp $ */
 
 /*
  Copyright (c) 2020 Roland Illig
@@ -401,7 +401,7 @@
 {
        printf(
            "%s:%zu:%zu: found test ... == ...: %s\n",
-           cstr_charptr(filename), lineno, column, cstr_charptr(line));
+           cstr_charptr(filename), lineno, column + 1, cstr_charptr(line));
        nerrors++;
        explain(
            W_test_eqeq,
diff -r 5cc4231747d9 -r 6da6fe074e33 pkgtools/check-portability/files/testdata/zzz_expected
--- a/pkgtools/check-portability/files/testdata/zzz_expected    Sat May 23 22:12:31 2020 +0000
+++ b/pkgtools/check-portability/files/testdata/zzz_expected    Sat May 23 22:18:10 2020 +0000
@@ -23,7 +23,7 @@
 files/testdata/double-brackets:8:4: double brackets: if [[ test ]]; then
 files/testdata/double-brackets:10:1: double brackets: [[ test ]]
 files/testdata/double-brackets:12:1: double brackets: [[ test ]] || echo
-files/testdata/env-sh:8:4: found test ... == ...: [ a == b ]
+files/testdata/env-sh:8:5: found test ... == ...: [ a == b ]
 
        The "test" command, as well as the "[" command, are not required to know
        the "==" operator. Only a few implementations like bash and some
@@ -40,6 +40,6 @@
        not be used in shell programs that are meant to be portable across a
        large number of POSIX-like systems.
 
-files/testdata/test-eqeq:7:7: found test ... == ...: test a == b       # bad
-files/testdata/test-eqeq:10:4: found test ... == ...: [ a == b ]       # bad
-files/testdata/test-eqeq:14:4: found test ... == ...: [ a == b -a c == d ]
+files/testdata/test-eqeq:7:8: found test ... == ...: test a == b       # bad
+files/testdata/test-eqeq:10:5: found test ... == ...: [ a == b ]       # bad
+files/testdata/test-eqeq:14:5: found test ... == ...: [ a == b -a c == d ]



Home | Main Index | Thread Index | Old Index