Files
mongo/buildscripts/__init__.py

14 lines
402 B
Python
Raw Normal View History

2009-08-07 16:03:11 -04:00
import hacks_mandriva
import hacks_ubuntu
2009-09-03 14:30:39 -04:00
import os;
def findHacks( un ):
2009-10-12 14:20:52 -04: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