[Python-modules-commits] r4000 - in packages/python-networkx/trunk/debian (changelog rules)

kibi-guest at users.alioth.debian.org kibi-guest at users.alioth.debian.org
Thu Dec 20 01:40:00 UTC 2007


    Date: Thursday, December 20, 2007 @ 01:39:59
  Author: kibi-guest
Revision: 4000

Keep a pristine copy of egg-info's SOURCES.txt, update timestamp

Modified:
  packages/python-networkx/trunk/debian/changelog
  packages/python-networkx/trunk/debian/rules

Modified: packages/python-networkx/trunk/debian/changelog
===================================================================
--- packages/python-networkx/trunk/debian/changelog	2007-12-20 01:39:47 UTC (rev 3999)
+++ packages/python-networkx/trunk/debian/changelog	2007-12-20 01:39:59 UTC (rev 4000)
@@ -14,8 +14,10 @@
   * Move the build instructions from “binary-arch” to “binary-indep”,
     per lintian.
   * Move the section from “graphics” to “python”, per lintian.
+  * Create a pristine copy of the networkx.egg-info/SOURCES.txt file during
+    the “install” target, which gets restored during the “clean” one.
 
- -- Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>  Thu, 06 Dec 2007 23:45:41 +0100
+ -- Cyril Brulebois <cyril.brulebois at enst-bretagne.fr>  Thu, 20 Dec 2007 02:39:51 +0100
 
 python-networkx (0.35.1.dfsg-1) unstable; urgency=low
 

Modified: packages/python-networkx/trunk/debian/rules
===================================================================
--- packages/python-networkx/trunk/debian/rules	2007-12-20 01:39:47 UTC (rev 3999)
+++ packages/python-networkx/trunk/debian/rules	2007-12-20 01:39:59 UTC (rev 4000)
@@ -27,6 +27,11 @@
 	# Make sure that there's no .pyc left
 	find . -name '*.pyc' -exec rm {} ';'
 
+	# Restore the pristine file
+	if [ -f networkx.egg-info/SOURCES.txt.pristine ]; then \
+		mv networkx.egg-info/SOURCES.txt.pristine networkx.egg-info/SOURCES.txt ; \
+	fi
+
 	dh_clean
 
 install: build
@@ -35,6 +40,9 @@
 	dh_clean -k
 	dh_installdirs
 
+	# Keep the original file around
+	cp networkx.egg-info/SOURCES.txt networkx.egg-info/SOURCES.txt.pristine
+
 	# Install w/o compiling *.pyc files
 	# Install egg-info directories (--single-... option)
 	python setup_egg.py install --no-compile --root=$(CURDIR)/debian/python-networkx \




More information about the Python-modules-commits mailing list