1 diff -BrauN repo-old/repo repo/repo
2 --- repo-old/repo 2011-02-10 20:21:39.690000130 +0100
3 +++ repo/repo 2011-02-10 20:21:46.773333463 +0100
5 # limitations under the License.
7 magic='--calling-python-from-/bin/sh--'
8 -"""exec" python -E "$0" "$@" """#$magic"
9 +"""exec" python2 -E "$0" "$@" """#$magic"
10 if __name__ == '__main__':
12 if sys.argv[-1] == '#%s' % magic:
16 ver_str = '.'.join(map(lambda x: str(x), VERSION))
18 + me = ["/usr/bin/python2",
20 '--repo-dir=%s' % dir,
21 '--wrapper-version=%s' % ver_str,
22 '--wrapper-path=%s' % wrapper_path,
28 + os.execv("/usr/bin/python2", me)
30 print >>sys.stderr, "fatal: unable to start %s" % main
31 print >>sys.stderr, "fatal: %s" % e