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

[SCM] Debian package checker branch, master, updated. 2.4.2-29-gabf98f7



The following commit has been merged in the master branch:
commit abf98f7a794821f3027030ac06bd5ed22d55563d
Author: Russ Allbery <rra@debian.org>
Date:   Sun Jul 25 17:53:55 2010 -0700

    Improve python-script-but-no-python-dep tag description
    
    * checks/scripts.desc:
      + [RA] Improve python-script-but-no-python-dep tag description to be
        clearer about the requirement for a versioned dependency for
        versioned scripts and to mention ${python:Depends}, created by the
        various Python debhelper scripts.  (Closes: #575590, #582763)

diff --git a/checks/scripts.desc b/checks/scripts.desc
index 28d4bed..527ee9e 100644
--- a/checks/scripts.desc
+++ b/checks/scripts.desc
@@ -245,14 +245,20 @@ Info: Packages with PHP scripts must depend on a phpX-cli package such as
 Tag: python-script-but-no-python-dep
 Severity: important
 Certainty: certain
-Info: Packages with Python scripts must depend on the package python.
- Those that have scripts executed with a versioned python package need a
- dependency on the equivalent version of python. 
+Info: Packages with Python scripts should depend on the package
+ <tt>python</tt>.  Those with scripts that specify a specific version of
+ Python must depend on that version of Python (exactly).
  .
  For example, if a script in the package uses <tt>#!/usr/bin/python</tt>,
- the package needs a dependency on "python".  If a script uses
- <tt>#!/usr/bin/python2.5</tt>, the package need a dependency on
- "python2.5".
+ the package needs a dependency on <tt>python</tt>.  If a script uses
+ <tt>#!/usr/bin/python2.6</tt>, the package needs a dependency on
+ <tt>python2.6</tt>.  A dependency on <tt>python (>= 2.6)</tt> is not
+ correct, since later versions of Python may not provide the
+ <tt>/usr/bin/python2.6</tt> binary.
+ .
+ If you are using debhelper, adding <tt>${python:Depends}</tt> to the
+ Depends field and ensuring dh_pysupport or dh_pycentral are run during
+ the build should take care of adding the correct dependency.
  .
  In some cases a weaker relationship, such as Suggests or Recommends, will
  be more appropriate.
diff --git a/debian/changelog b/debian/changelog
index 905fa05..d988d66 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -40,6 +40,11 @@ lintian (2.4.3) UNRELEASED; urgency=low
       tag.  Thanks, Robert Luberda.  (Closes: #585657)
   * checks/po-debconf:
     + [RA] Ignore comments in po/POTFILES.in.  (Closes: #586036)
+  * checks/scripts.desc:
+    + [RA] Improve python-script-but-no-python-dep tag description to be
+      clearer about the requirement for a versioned dependency for
+      versioned scripts and to mention ${python:Depends}, created by the
+      various Python debhelper scripts.  (Closes: #575590, #582763)
 
   * debian/changelog:
     + [RA] Fix Policy 3.9.0 reference in 2.4.2.  (Closes: #587549)

-- 
Debian package checker


Reply to: