SOURCES: python-pygobject-pyc.patch (NEW) - use codegen.pyc if available

megabajt megabajt at pld-linux.org
Mon Feb 16 00:36:51 CET 2009


Author: megabajt                     Date: Sun Feb 15 23:36:51 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use codegen.pyc if available

---- Files affected:
SOURCES:
   python-pygobject-pyc.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/python-pygobject-pyc.patch
diff -u /dev/null SOURCES/python-pygobject-pyc.patch:1.1
--- /dev/null	Mon Feb 16 00:36:52 2009
+++ SOURCES/python-pygobject-pyc.patch	Mon Feb 16 00:36:46 2009
@@ -0,0 +1,15 @@
+diff -urN pygobject-2.16.0/codegen/pygobject-codegen-2.0.in pygobject-2.16.0.new/codegen/pygobject-codegen-2.0.in
+--- pygobject-2.16.0/codegen/pygobject-codegen-2.0.in	2008-12-21 17:30:45.000000000 +0100
++++ pygobject-2.16.0.new/codegen/pygobject-codegen-2.0.in	2009-02-16 00:00:54.000000000 +0100
+@@ -8,4 +8,10 @@
+ PYTHONPATH=$codegendir
+ export PYTHONPATH
+ 
+-exec @PYTHON@ $codegendir/codegen.py "$@"
++if [ -f $codegendir/codegen.pyc ]; then
++	codegenexe="$codegendir/codegen.pyc"
++else
++	codegenexe="$codegendir/codegen.py"
++fi
++
++exec @PYTHON@ $codegenexe "$@"
================================================================


More information about the pld-cvs-commit mailing list