blob: 839da9dd919d9d7609e4e16cc0029faedfc1f354 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import hacks_mandriva
import hacks_ubuntu
import os;
def findHacks( un ):
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
|