Package: apt-forktracer
Version: 0.4
Followup-For: Bug #785958
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu wily ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * Convert to dh-python2.

Thanks for considering the patch.

Logan Rosen

-- System Information:
Debian Release: jessie/sid
  APT prefers wily-updates
  APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily'), 
(100, 'wily-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-18-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru apt-forktracer-0.4/debian/control apt-forktracer-0.4ubuntu1/debian/control
--- apt-forktracer-0.4/debian/control	2011-12-15 13:18:47.000000000 -0500
+++ apt-forktracer-0.4ubuntu1/debian/control	2015-05-28 00:01:42.000000000 -0400
@@ -2,14 +2,13 @@
 Section: admin
 Priority: optional
 Maintainer: Marcin Owsiany <porri...@debian.org>
-Build-Depends: debhelper (>= 8), python, python-support (>= 0.3)
+Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~), dh-python
 Standards-Version: 3.9.2
-XS-Python-Version: >= 2.4
+X-Python-Version: >= 2.4
 
 Package: apt-forktracer
 Architecture: all
 Depends: python-apt (>= 0.7.93.2), ${python:Depends}, ${misc:Depends}, lsb-release (>= 3.2-21)
-XB-Python-Version: ${python:Versions}
 Description: a utility for tracking non-official package versions
  apt-forktracer tries to alleviate the problem that APT stops tracking official
  versions of a package after you pin it or install a newer version.
diff -Nru apt-forktracer-0.4/debian/pycompat apt-forktracer-0.4ubuntu1/debian/pycompat
--- apt-forktracer-0.4/debian/pycompat	2008-11-17 02:39:52.000000000 -0500
+++ apt-forktracer-0.4ubuntu1/debian/pycompat	1969-12-31 19:00:00.000000000 -0500
@@ -1 +0,0 @@
-2
diff -Nru apt-forktracer-0.4/debian/rules apt-forktracer-0.4ubuntu1/debian/rules
--- apt-forktracer-0.4/debian/rules	2011-12-15 13:57:45.000000000 -0500
+++ apt-forktracer-0.4ubuntu1/debian/rules	2015-05-27 23:59:59.000000000 -0400
@@ -1,10 +1,8 @@
 #!/usr/bin/make -f
 %:
-	dh  $@
+	dh $@ --with python2
 
 # Install the module as private.
 override_dh_auto_install:
-	python setup.py install --no-compile \
-		--install-scripts $(CURDIR)/debian/apt-forktracer/usr/bin \
-		--install-lib     $(CURDIR)/debian/apt-forktracer/usr/share/apt-forktracer
-	rm -f                     $(CURDIR)/debian/apt-forktracer/usr/share/apt-forktracer/apt_forktracer-*.egg-info
+	python setup.py install --root=debian/apt-forktracer --no-compile --install-layout=deb --install-lib=/usr/share/apt-forktracer --install-scripts=/usr/bin
+	rm -f debian/apt-forktracer/usr/share/apt-forktracer/apt_forktracer-*.egg-info

Reply via email to