summarylogtreecommitdiffstats
path: root/unsermake-python2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unsermake-python2.patch')
-rw-r--r--unsermake-python2.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/unsermake-python2.patch b/unsermake-python2.patch
new file mode 100644
index 000000000000..bae8a2d12592
--- /dev/null
+++ b/unsermake-python2.patch
@@ -0,0 +1,24 @@
+--- unsermake-20060706.orig/unsermake 2006-07-07 01:07:51.000000000 +0800
++++ unsermake-20060706/unsermake 2007-07-24 11:35:39.000000000 +0800
+@@ -1,16 +1,12 @@
+-#! /bin/sh
++#!/bin/bash
+
+-self="$0"
+-if test -L "$self"; then
+- try=`readlink $self 2>/dev/null` && self=$try
+-fi
+-mods=`dirname $self`
+-directory=`dirname $mods`
+-mod=`basename $mods`
++mods=/usr/lib/python__version__/site-packages/unsermake
++directory=/usr/lib/python__version__/site-packages/unsermake
++mod=unsermake
+ if test -n "$PYTHONPATH"; then
+ export PYTHONPATH=$directory:$PYTHONPATH
+ else
+ export PYTHONPATH=$directory
+ fi
+-exec python -c "import $mod; $mod.main()" --modules $mods "$@"
++exec python2.6 -c "import $mod; $mod.main()" --modules $mods "$@"
+