/[gentoo-x86]/dev-db/mongodb/files/mongodb-1.8.5-fix-smokepy.patch
Gentoo

Contents of /dev-db/mongodb/files/mongodb-1.8.5-fix-smokepy.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Aug 20 08:46:47 2012 UTC (9 months, 4 weeks ago) by ultrabug
Branch: MAIN
CVS Tags: HEAD
Version bump, fix #431508 thx to Mike Limansky. Drop old.

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 --- a/SConstruct 2012-08-20 10:26:51.484835418 +0200
2 +++ b/SConstruct 2012-08-20 10:27:49.855374497 +0200
3 @@ -765,11 +765,16 @@
4 binaries = ['python', 'python2.5', 'python2.6', 'python2.7', 'python25', 'python26', 'python27']
5 for binary in binaries:
6 try:
7 - # py-2.4 compatible replacement for shell backticks
8 - output = subprocess.Popen([binary, '--version'], stdout=subprocess.PIPE).communicate()[0]
9 - match = version.search(output)
10 - if match and float(match.group(1)) >= 2.5:
11 - return binary
12 + for path in smokeEnv['ENV']['PATH'].split(':'):
13 + if os.path.isfile( '%s/%s' % (path, binary) ):
14 + # py-2.4 compatible replacement for shell backticks
15 + out, err = subprocess.Popen([binary, '-V'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
16 + for stream in (out, err):
17 + match = version.search(stream)
18 + if match:
19 + versiontuple = tuple(map(int, match.group(1).split('.')))
20 + if versiontuple >= (2, 5):
21 + return binary
22 except:
23 pass
24

  ViewVC Help
Powered by ViewVC 1.1.20