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

[SCM] Debian package checker branch, master, updated. 2.2.17-15-g1228185



The following commit has been merged in the master branch:
commit 78e4c50b8730f5fa6e81925ec467f12b3a0d41cc
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Sat Oct 31 11:13:13 2009 +0100

    Add 3.0 (quilt) and 3.0 (native) to list of supported source formats
    
    * checks/fields:
      + [FL] Allow source formats 3.0 (quilt) and 3.0 (native).
        (Closes: #552707)

diff --git a/checks/fields b/checks/fields
index a337dfe..fc118a5 100644
--- a/checks/fields
+++ b/checks/fields
@@ -76,6 +76,9 @@ our %known_obsolete_fields = map { $_ => 1 }
     ('revision', 'package-revision', 'package_revision',
      'recommended', 'optional', 'class');
 
+our @supported_source_formats =
+  ( qr/1\.0/, qr/3\.0\s*\((quilt|native)\)/ );
+
 our %known_build_essential = map { $_ => 1 }
     ('libc6-dev', 'libc-dev', 'gcc', 'g++', 'make', 'dpkg-dev');
 
@@ -161,8 +164,15 @@ unless (-d "fields") {
 
 if ($type eq 'source') {
 	my $format = $info->field('format');
-	if (defined($format) and $format !~ /^\s*1\.0\s*\z/) {
-		tag 'unsupported-source-format', $format;
+	if (defined($format)) {
+		my $supported = 0;
+		foreach my $f (@supported_source_formats){
+			if( $format =~ /^\s*$f\s*\z/ ){
+				$supported = 1;
+			}
+		}
+		tag 'unsupported-source-format', $format
+			unless $supported;
 	}
 }
 
diff --git a/debian/changelog b/debian/changelog
index 5b4c1d4..3e23849 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,8 @@ lintian (2.2.18) UNRELEASED; urgency=low
   * checks/fields:
     + [RA] Fix lib-recommends-documentation tag to correctly exclude dev
       and doc packages.  Patch from Stéphane Glondu.  (Closes: #548210)
+    + [FL] Allow source formats 3.0 (quilt) and 3.0 (native).
+      (Closes: #552707)
   * checks/lintian.desc:
     + [CW] Add lucid as an allowable distribution for Ubuntu, and remove
       gutsy.

-- 
Debian package checker


Reply to: