Author: rra
Date: 2006-08-21 19:27:24 +0200 (Mon, 21 Aug 2006)
New Revision: 728

Modified:
   trunk/checks/fields
   trunk/checks/fields.desc
   trunk/debian/changelog
Log:
  + [RA] Check for old << dependencies on Python in Python packages that
    lack a Python-Version control field, as these are probably packages
    that don't follow the new Python policy.  Thanks, Rapha?\195?\171l Hertzog.

Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields 2006-08-21 16:45:58 UTC (rev 727)
+++ trunk/checks/fields 2006-08-21 17:27:24 UTC (rev 728)
@@ -434,6 +434,10 @@
 
                                        tag 
"doc-package-depends-on-main-package", "$field"
                                            if ("$d_pkg-doc" eq $pkg && $field 
=~ /^(pre-)depends$/);
+
+                                       tag "old-versioned-python-dependency", 
"$field: $part_d_orig"
+                                           if ($d_pkg eq 'python' && 
$d_version->[0] eq '<<' && &$is_dep_field($field)
+                                               && $arch_indep && $pkg =~ 
/^python-/ && ! -f "fields/python-version");
                                }
                        }
                        tag "package-depends-on-multiple-libstdc-versions", 
@seen_libstdcs

Modified: trunk/checks/fields.desc
===================================================================
--- trunk/checks/fields.desc    2006-08-21 16:45:58 UTC (rev 727)
+++ trunk/checks/fields.desc    2006-08-21 17:27:24 UTC (rev 728)
@@ -616,3 +616,16 @@
  .
  (One or more specific versions may be listed with the last form.)  A.B
  and X.Y should be Python versions.
+
+Tag: old-versioned-python-dependency
+Type: warning
+Info: This package appears to be an architecture-indepedent Python module
+ but has a dependency on a version of python less than a particular
+ version and no Python-Version control field.  This normally means that
+ the package isn't using the current Python policy; most
+ architecture-independent Python packages will work with any future
+ version of Python if they follow the new policy.
+ .
+ If this package really does require only a particular range of Python
+ versions, add a Python-Version control field (as described in 2.3 of the
+ Python policy) to resolve this warning.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2006-08-21 16:45:58 UTC (rev 727)
+++ trunk/debian/changelog      2006-08-21 17:27:24 UTC (rev 728)
@@ -37,6 +37,9 @@
     + [RA] Check the syntax of the new Python-Version field.
     + [RA] Check for missing build dependencies on python-central or
       python-support.  Thanks, Raphaël Hertzog.
+    + [RA] Check for old << dependencies on Python in Python packages that
+      lack a Python-Version control field, as these are probably packages
+      that don't follow the new Python policy.  Thanks, Raphaël Hertzog.
   * checks/files{.desc,}:
     + [RA] Provide a better explanation of why Debian packages shouldn't
       ship files in /srv.  (Closes: #379176)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to