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

Bug#861599: lintian: spaces in debian/watch cause debian-watch-may-check-gpg-signature false positive



Package: lintian
Version: 2.5.50.1
Severity: normal
Tags: patch

Dear Maintainer,

spaces in debian/watch cause lintian to complain about
debian-watch-may-check-gpg-signature, while uscan (check: uscan -vv)
accepts them.

>From man uscan:

Version 4
The syntax of the watch file is relaxed to allow more spaces for
readability.

Multiple options option1, option2, option3, ... can be set as
opts="option1, option2, option3,  ...  " .  The double quotes are
necessary if
options contain any spaces.

Patch attached.

Regards,
Alexander Kulak
diff --git a/checks/watch-file.pm b/checks/watch-file.pm
index 53016aa7a..bfa5d9293 100644
--- a/checks/watch-file.pm
+++ b/checks/watch-file.pm
@@ -100,7 +100,7 @@ sub run {
             if (   s/^opt(?:ion)?s=\"([^\"]+)\"\s+//
                 || s/^opt(?:ion)?s=(\S+)\s+//) {
                 $opts = $1;
-                @opts = split(',', $opts);
+                @opts = split($watchver >= 4 ? '\s*,\s*' : ',', $opts);
                 for (@opts) {
                     $repack_mangle = 1
                       if defined $repack

Reply to: