!/usr/bin/env 蟒蛇
导入系统导入 ToBuildOrNot
repoArray = ["MSS_sims","PCS_CCS"]
def main(argv): 用于 repoArray 中的 repo:
needsBuild = ToBuildOrNot.ToBuildOrNot(repo)
if needsBuild == True:
print "\n",repo,"Needs To rebuilt\n"
print "---------------------------------------------------------------"
elif needsBuild == False:
print "\n", repo,"does NOT Need to be Rebuilt\n"
print "---------------------------------------------------------------"
else:
print "error"
如果名称== '主': main(sys.argv[1:])