Package: python-apsw
Version: 3.7.17-r1-1
Severity: serious
Tags: patch
Justification: Policy 3.5

Both python-apsw and python3-apsw are missing depends on the correct python
interpreter.  The attached patch resolves the issue.  I can either upload this
as an NMU or you can, please let me know if you intend to upload.
diff -Nru python-apsw-3.7.17-r1/debian/changelog python-apsw-3.7.17-r1/debian/changelog
--- python-apsw-3.7.17-r1/debian/changelog	2013-06-19 15:03:12.000000000 -0400
+++ python-apsw-3.7.17-r1/debian/changelog	2013-08-05 18:13:39.000000000 -0400
@@ -1,3 +1,13 @@
+python-apsw (3.7.17-r1-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Correct dependencies for python3-apsw
+    - Change python:Depends to python3:depends for python3-apsw
+    - Move dh_python2/3 after dh_install in debian/rules so it is invoked
+      correctly
+
+ -- Scott Kitterman <sc...@kitterman.com>  Mon, 05 Aug 2013 16:43:48 -0400
+
 python-apsw (3.7.17-r1-1) unstable; urgency=low
 
   [Joel Rosdahl]
diff -Nru python-apsw-3.7.17-r1/debian/control python-apsw-3.7.17-r1/debian/control
--- python-apsw-3.7.17-r1/debian/control	2013-06-19 15:03:12.000000000 -0400
+++ python-apsw-3.7.17-r1/debian/control	2013-08-05 16:43:38.000000000 -0400
@@ -39,7 +39,7 @@
 
 Package: python3-apsw
 Architecture: any
-Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends}
 Suggests: python-apsw-doc
 Provides: ${python:Provides}
 Description: another Python SQLite 3 wrapper (Python 3 version)
diff -Nru python-apsw-3.7.17-r1/debian/rules python-apsw-3.7.17-r1/debian/rules
--- python-apsw-3.7.17-r1/debian/rules	2013-06-19 15:03:12.000000000 -0400
+++ python-apsw-3.7.17-r1/debian/rules	2013-08-05 18:14:16.000000000 -0400
@@ -74,9 +74,6 @@
 	dh_testroot -a
 	dh_installdocs -a debian/NEWS.Debian
 
-	dh_python2 -a
-	dh_python3 -a
-
 	dh_install
 
         # Install debugging extension and remove from regular package
@@ -89,6 +86,9 @@
 	           -printf "%P\0" -delete) \
 	    | xargs -0 dh_install --autodest -ppython3-apsw-dbg
 
+	dh_python2 -a
+	dh_python3 -a
+
 	dh_installchangelogs -a
 	dh_strip -ppython-apsw --dbg-package=python-apsw-dbg
 	dh_strip -ppython3-apsw --dbg-package=python3-apsw-dbg

Reply via email to