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

Bug#639923: lintian: unresolvable Ref



Package: lintian
Version: 2.5.2
Tags: patch

The attached patch fixes a few unresolvable references. (The change in lib/Lintian/Tag/Info.pm is needed for hyphen-used-as-minus-sign.)

--
Jakub Wilk
diff --git a/checks/copyright-file.desc b/checks/copyright-file.desc
--- a/checks/copyright-file.desc
+++ b/checks/copyright-file.desc
@@ -381,7 +381,7 @@
 Tag: copyright-refers-to-deprecated-bsd-license-file
 Severity: minor
 Certainty: certain
-Ref: Policy 12.5
+Ref: policy 12.5
 Info: The copyright file refers to
  <tt>/usr/share/common-licenses/BSD</tt>.  Due to the brevity of this
  license, the specificity of this copy to code whose copyright is held by
diff --git a/checks/fields.desc b/checks/fields.desc
--- a/checks/fields.desc
+++ b/checks/fields.desc
@@ -764,7 +764,7 @@
 Tag: breaks-without-version
 Severity: normal
 Certainty: possible
-Ref: policy 7.3, policy 7.4
+Ref: policy 7.3, policy 7.4,
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605744
 Info: This package declares a Breaks relationship with another package
  that has no version number.  Normally, Breaks should be used to indicate
diff --git a/checks/files.desc b/checks/files.desc
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -759,7 +759,7 @@
 Tag: python-module-in-wrong-location
 Severity: normal
 Certainty: possible
-Ref: python-policy1.5,  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576012
+Ref: python-policy 1.5, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576012
 Info: The package installs a Python module or debug information for a Python
  module in the wrong location for the given version of Python.
  .
diff --git a/checks/po-debconf.desc b/checks/po-debconf.desc
--- a/checks/po-debconf.desc
+++ b/checks/po-debconf.desc
@@ -14,7 +14,7 @@
  gettext-based translation system.  If this package uses one other than
  po-debconf, please report this as a lintian bug along with how to detect
  that system.
-Ref: 3.9.1
+Ref: policy 3.9.1
 
 Tag: stray-translated-debconf-templates
 Severity: normal
diff --git a/lib/Lintian/Tag/Info.pm b/lib/Lintian/Tag/Info.pm
--- a/lib/Lintian/Tag/Info.pm
+++ b/lib/Lintian/Tag/Info.pm
@@ -246,6 +246,8 @@
             $text = qq(the <a href="$url">$ref</a> manual page);
         } elsif ($ref =~ m,^(ftp|https?)://,) {
             $text = qq(<a href="$ref">$ref</a>);
+        } elsif ($ref =~ m,^/,) {
+            $text = qq(<a href="file://$ref">$ref</a>);
         }
         push (@refs, $text) if $text;
     }

Reply to: