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

[SCM] Debian package checker branch, master, updated. 2.3.3-74-g317d91d



The following commit has been merged in the master branch:
commit 3f86a38435a9c20613338f63dd6b291507ab05a0
Author: Cyril Brulebois <kibi@debian.org>
Date:   Wed Mar 10 21:28:35 2010 +0100

    Detect Package-Type in debian/control.

diff --git a/checks/control-file b/checks/control-file
index 5d86304..93a9bd6 100644
--- a/checks/control-file
+++ b/checks/control-file
@@ -71,6 +71,9 @@ while (<CONTROL>) {
 			tag "xs-vcs-header-in-debian-control", "$field"
 			    if $known_source_fields{$base};
 		}
+		if ($field eq 'package-type') {
+			tag "package-type-in-debian-control", "line $.";
+		}
 		unless (/^\S+: \S/ || /^\S+:$/) {
 			tag 'debian-control-has-unusual-field-spacing', "line $.";
 		}
diff --git a/checks/control-file.desc b/checks/control-file.desc
index 234cc98..b9abdee 100644
--- a/checks/control-file.desc
+++ b/checks/control-file.desc
@@ -87,6 +87,14 @@ Info: There is an XS-Vcs-* field in the <tt>debian/control</tt> file.  As
  recognizes these headers and handles them correctly.  Consider removing
  the XS- prefix for this field.
 
+Tag: package-type-in-debian-control
+Severity: important
+Certainty: certain
+Info: There is a Package-Type field in the <tt>debian/control</tt>
+ file.  This field is only relevant to the build process and should
+ not be embedded in the resulting binary package.  As a consequence,
+ XC-Package-Type should be used instead.
+
 Tag: stronger-dependency-implies-weaker
 Severity: normal
 Certainty: certain

-- 
Debian package checker


Reply to: