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

[SCM] Debian package checker branch, master, updated. 2.5.0-22-gda25ef6



The following commit has been merged in the master branch:
commit da25ef6efed740df5b5ba321bb5d1404c9e560b6
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Jun 2 16:35:46 2011 +0200

    Recognise that dh_python is obsolete

diff --git a/checks/debhelper b/checks/debhelper
index 84084d0..6c7e443 100644
--- a/checks/debhelper
+++ b/checks/debhelper
@@ -97,6 +97,9 @@ while (<RULES>) {
 	if ($dhcommand eq 'dh_undocumented') {
 	    tag 'dh_undocumented-is-obsolete', "line $.";
 	}
+	if ($dhcommand eq 'dh_python') {
+	    tag 'dh_python-is-obsolete', "line $.";
+	}
 
 	# Don't warn about recently deprecated commands in code that may be
 	# optional.  It may be there only for backports.
diff --git a/checks/debhelper.desc b/checks/debhelper.desc
index 2700b24..d72614d 100644
--- a/checks/debhelper.desc
+++ b/checks/debhelper.desc
@@ -90,6 +90,12 @@ Info: This package calls dh_undocumented in its <tt>debian/rules</tt>
  it's former behavior of adding symlinks to the undocumented(7) man page
  is now obsolete.
 
+Tag: dh_python-is-obsolete
+Severity: normal
+Certainty: certain
+Info: This package calls dh_python in its <tt>debian/rules</tt> file.
+ dh_python is deprecated and has been replaced by dh_python2.
+
 Tag: dh_desktop-is-deprecated
 Severity: normal
 Certainty: certain
diff --git a/debian/changelog b/debian/changelog
index 7359410..e709722 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,11 @@ lintian (2.5.1) UNRELEASED; urgency=low
 
   * Summary of tag changes:
     + Added:
+      - dh_python-is-obsolete
       - non-empty-dependency_libs-in-la-file
 
+  * checks/debhelper{,.desc}:
+    + [NT] Recognise that dh_python is obsolete.  (Closes: #541978)
   * checks/fields{,.desc}:
     + [NT] Allow "all" and "any" to appear together in the Architecture
       field of a .dsc file.  (Closes: #626775)
diff --git a/t/tests/debhelper-deprecated/debian/debian/rules b/t/tests/debhelper-deprecated/debian/debian/rules
index 7ec4692..406f824 100755
--- a/t/tests/debhelper-deprecated/debian/debian/rules
+++ b/t/tests/debhelper-deprecated/debian/debian/rules
@@ -21,6 +21,7 @@ binary-indep:
 	dh_desktop
 	-dh_dhelp
 	dh_scrollkeeper
+	-dh_python
 # Check not warning about deprecated commands in optional portions, but
 # commands that have been toast for a long time are still warned about.
 ifneq "$(LENNY_BACKPORT)" "y"
diff --git a/t/tests/debhelper-deprecated/desc b/t/tests/debhelper-deprecated/desc
index a71c53b..0bd547c 100644
--- a/t/tests/debhelper-deprecated/desc
+++ b/t/tests/debhelper-deprecated/desc
@@ -5,6 +5,7 @@ Description: Test for use of deprecated dh_* commands
 Test-For:
  dh_desktop-is-deprecated
  dh_dhelp-is-deprecated
+ dh_python-is-obsolete
  dh_scrollkeeper-is-deprecated
  dh_suidregister-is-obsolete
  dh_undocumented-is-obsolete
diff --git a/t/tests/debhelper-deprecated/tags b/t/tests/debhelper-deprecated/tags
index 032a197..9c37c4a 100644
--- a/t/tests/debhelper-deprecated/tags
+++ b/t/tests/debhelper-deprecated/tags
@@ -1,5 +1,6 @@
 W: debhelper-deprecated source: dh_desktop-is-deprecated line 21
 W: debhelper-deprecated source: dh_dhelp-is-deprecated line 22
+W: debhelper-deprecated source: dh_python-is-obsolete line 24
 W: debhelper-deprecated source: dh_scrollkeeper-is-deprecated line 23
-W: debhelper-deprecated source: dh_suidregister-is-obsolete line 33
-W: debhelper-deprecated source: dh_undocumented-is-obsolete line 34
+W: debhelper-deprecated source: dh_suidregister-is-obsolete line 34
+W: debhelper-deprecated source: dh_undocumented-is-obsolete line 35

-- 
Debian package checker


Reply to: