updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / util-vserver / python2.patch
blob320efa97de15d003fadfdc51887daf223a91fc21
1 diff -Nur util-vserver-0.30.216-pre2926.orig/python/libvserver.py util-vserver-0.30.216-pre2926/python/libvserver.py
2 --- util-vserver-0.30.216-pre2926.orig/python/libvserver.py 2010-12-03 02:30:11.000000000 +1100
3 +++ util-vserver-0.30.216-pre2926/python/libvserver.py 2011-01-03 11:38:42.994050243 +1100
4 @@ -1,4 +1,4 @@
5 -#!/usr/bin/python -tt
6 +#!/usr/bin/python2 -tt
7 #
8 # $Id: libvserver.py 2823 2008-11-06 02:18:50Z dhozac $
9 # Copyright (C) 2008 Daniel Hokka Zakrisson
10 diff -Nur util-vserver-0.30.216-pre2926.orig/scripts/vyum-worker util-vserver-0.30.216-pre2926/scripts/vyum-worker
11 --- util-vserver-0.30.216-pre2926.orig/scripts/vyum-worker 2010-12-03 02:30:13.000000000 +1100
12 +++ util-vserver-0.30.216-pre2926/scripts/vyum-worker 2011-01-03 11:38:03.631317691 +1100
13 @@ -38,7 +38,7 @@
16 function check(){
17 - python -c "$1" &>/dev/null || {
18 + python2 -c "$1" &>/dev/null || {
19 warning "\
20 You are using a version of yum which is insecure and broken in chroot
21 related operations; either apply the patches shipped in the 'contrib/'
22 @@ -56,7 +56,7 @@
24 yum=${YUM:-yum}
25 conf=yum.conf
26 -case $(python -c "import yum; print yum.__version__" 2>/dev/null) in
27 +case $(python2 -c "import yum; print yum.__version__" 2>/dev/null) in
28 (2.[012345]*)
29 check 'import yum,sys; sys.exit(not hasattr(yum.config.yumconf, "getRootedPath"))'