0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/buildscripts/__init__.py

14 lines
402 B
Python
Raw Normal View History

2009-08-07 22:03:11 +02:00
import hacks_mandriva
import hacks_ubuntu
2009-09-03 20:30:39 +02:00
import os;
def findHacks( un ):
2009-10-12 20:20:52 +02:00
if un[0] == 'Linux' and (os.path.exists("/etc/debian_version") or
un[3].find("Ubuntu") >= 0):
return hacks_ubuntu
if un[0] == 'Linux' and (os.path.exists("/etc/mandriva-release") or
un[3].find("mnb") >= 0):
return hacks_mandriva
return None