Control: tags -1 patch

Fix works on 2.5.50.4. This patch is for 2.5.92.
Bug-Debian: https://bugs.debian.org/889042

Index: lintian-2.5.92/checks/control-file.desc
===================================================================
--- lintian-2.5.92.orig/checks/control-file.desc
+++ lintian-2.5.92/checks/control-file.desc
@@ -285,7 +285,7 @@ Info: The restriction formula in Build-P
  "noudeb",
  "stage1",
  "stage2"
- and "pkg.<i>srcpkg</i>.<i>anything</i>".
+ and "pkg/<i>srcpkg</i>/<i>anything</i>".
 Ref: https://wiki.debian.org/BuildProfileSpec#Registered_profile_names
 
 Tag: multiline-architecture-field
Index: lintian-2.5.92/checks/control-file.pm
===================================================================
--- lintian-2.5.92.orig/checks/control-file.pm
+++ lintian-2.5.92/checks/control-file.pm
@@ -364,7 +364,7 @@ sub run {
                     tag 'invalid-profile-name-in-build-profiles-field',
                       $profile, $bin
                       unless $KNOWN_BUILD_PROFILES->known($profile)
-                      or $profile =~ /^pkg\.[a-z0-9][a-z0-9+.-]+\../;
+                      or $profile =~ /^pkg\/[a-z0-9][a-z0-9+.-]+\/./;
                 }
             }
         }
Index: lintian-2.5.92/checks/fields.desc
===================================================================
--- lintian-2.5.92.orig/checks/fields.desc
+++ lintian-2.5.92/checks/fields.desc
@@ -669,7 +669,7 @@ Info: The restriction formula in the sou
  "noudeb",
  "stage1",
  "stage2"
- and "pkg.<i>srcpkg</i>.<i>anything</i>".
+ and "pkg/<i>srcpkg</i>/<i>anything</i>".
 Ref: https://wiki.debian.org/BuildProfileSpec#Registered_profile_names
 
 Tag: build-depends-on-build-essential-package-without-using-version
Index: lintian-2.5.92/checks/fields.pm
===================================================================
--- lintian-2.5.92.orig/checks/fields.pm
+++ lintian-2.5.92/checks/fields.pm
@@ -1097,7 +1097,7 @@ sub run {
                                 tag 'invalid-profile-name-in-source-relation',
                                   "$prof [$field: $part_d_orig]"
                                   unless $KNOWN_BUILD_PROFILES->known($prof)
-                                  or $prof =~ /^pkg\.[a-z0-9][a-z0-9+.-]+\../;
+                                  or $prof =~ /^pkg\/[a-z0-9][a-z0-9+.-]+\/./;
                             }
                         }
 
Index: lintian-2.5.92/t/tests/fields-build-profiles-general/debian/debian/control.in
===================================================================
--- lintian-2.5.92.orig/t/tests/fields-build-profiles-general/debian/debian/control.in
+++ lintian-2.5.92/t/tests/fields-build-profiles-general/debian/debian/control.in
@@ -5,7 +5,7 @@ Maintainer: {$author}
 Standards-Version: {$standards_version}
 Build-Depends: {$build_depends},
  big <stage1>, bpfail1 <foobar>,
- bpcomplicated <stage1 nocheck> <cross> <!pkg.{$source}.foo>
+ bpcomplicated <stage1 nocheck> <cross> <!pkg/{$source}/foo>
 Rules-Requires-Root: no
 
 Package: {$source}-wrong-syntax
@@ -23,7 +23,7 @@ Description: {$description} (wrong synta
 Package: {$source}-unknown-profile
 Architecture: {$architecture}
 Depends: $\{shlibs:Depends\}, $\{misc:Depends\}
-Build-Profiles: <!stage1 !nocheck> <!unknown> <pkg.{$source}.foo>
+Build-Profiles: <!stage1 !nocheck> <!unknown> <pkg/{$source}/foo>
 Description: {$description} (unknown profile)
  Check for unknown profile names
  .

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to