[SCM] Debian package checker branch, master, updated. 2.2.5-38-gcc59976
The following commit has been merged in the master branch:
commit 625eed4c9189650e523c3031b23d49ba435fc05b
Author: Russ Allbery <rra@debian.org>
Date: Sat Feb 21 14:40:31 2009 -0800
Warn if the source package format isn't 1.0
* checks/fields{,.desc}:
+ [RA] Warn of unsupported source package versions.
diff --git a/checks/fields b/checks/fields
index cf5fea1..dc63f7c 100644
--- a/checks/fields
+++ b/checks/fields
@@ -141,6 +141,15 @@ unless (-d "fields") {
fail("directory in lintian laboratory for $type package $pkg missing: fields");
}
+#---- Format
+
+if ($type eq 'source') {
+ my $format = $info->field('format');
+ if (defined($format) and $format !~ /^\s*1\.0\s*\z/) {
+ tag 'unsupported-source-format', $format;
+ }
+}
+
#---- Package
if ($type eq "binary"){
diff --git a/checks/fields.desc b/checks/fields.desc
index e51c127..395fd2e 100644
--- a/checks/fields.desc
+++ b/checks/fields.desc
@@ -7,6 +7,14 @@ Needs-Info: debfiles, source-control-fields
Info: This script checks the syntax of the fields in package control files,
as described in the Policy Manual.
+Tag: unsupported-source-format
+Severity: serious
+Certainty: certain
+Info: This package uses a different source package format than 1.0. At
+ present, only <tt>Format: 1.0</tt> packages are permitted by the Debian
+ archive software. Newer package formats are supported by dpkg, but they
+ should not yet be used for upload to Debian.
+
Tag: no-package-name
Severity: serious
Certainty: certain
diff --git a/debian/changelog b/debian/changelog
index 586932c..4ea0a74 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ lintian (2.2.6) UNRELEASED; urgency=low
- icon-size-and-directory-name-mismatch
- lzma-deb-archive
- multiple-distributions-in-changes-file (disabled)
+ - unsupported-source-format
* checks/common_data.pm:
+ [RA] Virtual packages now come from data.
@@ -23,8 +24,9 @@ lintian (2.2.6) UNRELEASED; urgency=low
syntax "Homepage: <http://example.com>" using the warning level
tag description-contains-homepage rather than the info level tag
description-possibly-contains-homepage. (Closes: #515998)
- * checks/fields:
+ * checks/fields{,.desc}:
+ [RA] Load virtual packages from data/fields/virtual-packages.
+ + [RA] Warn of unsupported source package versions.
* checks/files{,.desc}:
+ [RA] Warn of PNG icons whose size doesn't match the size indicated
by the directory in which they're installed. Patch from Raphael
--
Debian package checker
Reply to: