def isOnlyMacOS(rules, specifier):
allowsOSX = False
allowsAll = False
#print("Considering", specifier, "rules", rules)
if rules:
for rule in rules:
if rule.action == "allow" and rule.os and rule.os.name == "osx":
allowsOSX = True
if rule.action == "allow" and not rule.os:
allowsAll = True
if allowsOSX and not allowsAll:
return True
return False
# get the local version list
评论列表
文章目录