[Python-apps-commits] r530 - in packages/topshelf/trunk/debian (rules)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Wed Jan 16 18:31:07 UTC 2008


    Date: Wednesday, January 16, 2008 @ 18:31:07
  Author: piotr
Revision: 530

* put python2.5 in hashbang if default python version is < 2.5
* add dh_pytcentrall call

Modified:
  packages/topshelf/trunk/debian/rules

Modified: packages/topshelf/trunk/debian/rules
===================================================================
--- packages/topshelf/trunk/debian/rules	2008-01-16 18:26:08 UTC (rev 529)
+++ packages/topshelf/trunk/debian/rules	2008-01-16 18:31:07 UTC (rev 530)
@@ -6,6 +6,10 @@
 APPDIR=$(CURDIR)/debian/topshelf
 
 binary-install/topshelf::
+ifeq (old,$(shell dpkg --compare-versions "`pyversions -vd`" lt '2.5' && echo old))
+	sed -i -e "1s,env python,python2.5," $(APPDIR)/usr/lib/gnome-panel/topshelf.py
+endif
+	dh_pycentral
 	# Rename topshelf-48.png
 	mv $(APPDIR)/usr/share/pixmaps/topshelf-48.png $(APPDIR)/usr/share/pixmaps/topshelf.png
 	




More information about the Python-apps-commits mailing list