[Python-apps-commits] r4900 - in packages/pybtex/trunk/debian (changelog rules)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Thu Mar 4 13:55:53 UTC 2010


    Date: Thursday, March 4, 2010 @ 13:55:48
  Author: jwilk
Revision: 4900

Work around the fact that different PKG-INFO files can be generated for
different Python versions.

Modified:
  packages/pybtex/trunk/debian/changelog
  packages/pybtex/trunk/debian/rules

Modified: packages/pybtex/trunk/debian/changelog
===================================================================
--- packages/pybtex/trunk/debian/changelog	2010-03-04 12:16:56 UTC (rev 4899)
+++ packages/pybtex/trunk/debian/changelog	2010-03-04 13:55:48 UTC (rev 4900)
@@ -4,8 +4,10 @@
   * Run tests for all supported Python versions.
     + Build-depend on python-all.
   * Fix watch file to accept more than one dot in version number.
+  * Work around the fact that different PKG-INFO files can be generated for
+    different Python versions.
 
- -- Jakub Wilk <jwilk at debian.org>  Thu, 04 Mar 2010 13:06:58 +0100
+ -- Jakub Wilk <jwilk at debian.org>  Thu, 04 Mar 2010 14:55:32 +0100
 
 pybtex (0.13.1-1) unstable; urgency=low
 

Modified: packages/pybtex/trunk/debian/rules
===================================================================
--- packages/pybtex/trunk/debian/rules	2010-03-04 12:16:56 UTC (rev 4899)
+++ packages/pybtex/trunk/debian/rules	2010-03-04 13:55:48 UTC (rev 4900)
@@ -31,6 +31,13 @@
 	> docs/changelog
 	dh_installchangelogs docs/changelog
 
+.PHONY: override_dh_pysupport
+override_dh_pysupport:
+# For some reason PKG-INFO files differ between Python versions.
+# Let's leave only ony copy.
+	find debian/ -name PKG-INFO | tail -n +2 | xargs -r -n1 cp -vf $(shell find debian/ -name PKG-INFO | head -n 1)
+	dh_pysupport
+
 .PHONY: build build-arch build-indep binary binary-arch binary-indep clean
 build build-arch build-indep binary binary-indep clean:
 	dh $(@)




More information about the Python-apps-commits mailing list