blob: 49c2883f34332e59bbe3fac8bbae59a4096b2a20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/usr/bin/python3
import os
import subprocess
import sisyphus.getenv
def root():
return True if os.getuid() == 0 else False
def sanity():
activeBranch = sisyphus.getenv.systemBranch()
binhostURL = sisyphus.getenv.binhostURL()
isSane = int()
if "packages-next" in binhostURL:
if activeBranch == "next":
isSane = int(1)
else:
isSane = int(0)
else:
if activeBranch == "master":
isSane = int(1)
else:
isSane = int(0)
return isSane
|