[Python-apps-team] Bug#807021: mercurial: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

Santiago Vila sanvila at unex.es
Wed Mar 30 11:06:11 UTC 2016


Hello Javi and Julien.

You could do this instead, which I think it's cleaner:

--- a/debian/rules
+++ b/debian/rules
@@ -83,11 +83,9 @@ install-archindep:
 		-name '*.so' ! -type d -delete , \
 		-type d -empty -delete
 
-override_dh_python2:
+override_dh_python2-arch:
 	dh_python2
-	if test -d debian/mercurial; then \
-		find debian/mercurial/usr/share -type d -empty -delete ; \
-	fi
+	find debian/mercurial/usr/share -type d -empty -delete
 
 override_dh_auto_clean: mercurial/__version__.py
 	cp -a mercurial/__version__.py mercurial/__version__.py.save



More information about the Python-apps-team mailing list