tags 552912 + patch thanks The attached patch fixes this problem.
-- Jakub Wilk
diff --git a/debian/rules b/debian/rules --- a/debian/rules +++ b/debian/rules @@ -6,8 +6,6 @@ PYVERS=$(shell pyversions -vr debian/control) PYMOD=mechanize PACKAGE=python-$(PYMOD) -DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \ - | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1) include /usr/share/dpatch/dpatch.make @@ -45,7 +43,7 @@ # Remove python and module version from .egg-info echo python:Provides=$(foreach pv,$(shell pyversions -s),$(pv)-mechanize)|sed 's/ /, /g' >> debian/python-mechanize.substvars (cd debian/$(PACKAGE)/usr/lib/python$*/*-packages/; \ - mv $(PYMOD)-$(DEB_UPSTREAM_VERSION)-py$*.egg-info $(PYMOD).egg-info) + mv $(PYMOD)-*.egg-info $(PYMOD).egg-info) .PHONY: binary-common binary-common: