tags 616935 patch user [email protected] usertags 616935 ubuntu-patch oneiric thanks
On Mon, Mar 07, 2011 at 12:49:41AM +0000, Matthias Klose wrote: > The package build-depends on python-central, which should be > removed in time for the wheezy release. dh_python2 should be used instead. > dh_python2 installs into the same locations as pycentral, but > avoids the creation and removal of symlinks at package installation > and removal time, making the upgrade process more robust and faster. Here's a patch. I couldn't find any suggestion of a minimum Python version in the source, so I just omitted X-Python-Version; feel free to add this if you know better. * Convert to dh_python2. diff -u pexpect-2.3/debian/control pexpect-2.3/debian/control --- pexpect-2.3/debian/control +++ pexpect-2.3/debian/control @@ -1,9 +1,8 @@ Source: pexpect Section: python Priority: optional -Build-Depends-Indep: python-all-dev (>= 2.3.5-10), python-central (>= 0.4.17) +Build-Depends-Indep: python-all-dev (>= 2.6.6-3~) Build-Depends: debhelper (>= 5.0.37.1) -XS-Python-Version: all Maintainer: Ganesan Rajagopal <[email protected]> Uploaders: Debian Python Modules Team <[email protected]> Standards-Version: 3.8.0 @@ -14,7 +13,6 @@ Provides: ${python:Provides} Conflicts: python2.3-pexpect, python2.4-pexpect Replaces: python2.3-pexpect, python2.4-pexpect -XB-Python-Version: ${python:Versions} Description: Python module for automating interactive applications Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their diff -u pexpect-2.3/debian/rules pexpect-2.3/debian/rules --- pexpect-2.3/debian/rules +++ pexpect-2.3/debian/rules @@ -33,7 +33,7 @@ $(MAKE) -f debian/rules $(PYVERS:%=install-python%) install-python%: - python$* setup.py install --no-compile --root=$(d) + python$* setup.py install --no-compile --root=$(d) --install-layout=deb # Build architecture-independent files here. binary-indep: build install @@ -44,9 +44,7 @@ dh_installexamples -i dh_installchangelogs -i dh_link -i - dh_pycentral -i - dh_python -i - echo python:Provides=$(foreach pv,$(shell pyversions -s),$(pv)-pexpect)|sed 's/ /, /g' >> debian/python-pexpect.substvars + dh_python2 -i dh_compress -i dh_fixperms -i dh_installdeb -i Thanks, -- Colin Watson [[email protected]] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

