We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07fc6b0 commit 6064ce0Copy full SHA for 6064ce0
utils/merge-rulesets.py
@@ -27,8 +27,13 @@
27
# XXX TODO replace all sed commands with native Python
28
#strip_oneline_comment = re.compile(r"<!--.*?-->")
29
30
-commit_id = os.environ["GIT_COMMIT_ID"]
31
-library.write('<rulesetlibrary gitcommitid="%s">' % commit_id)
+try:
+ commit_id = os.environ["GIT_COMMIT_ID"]
32
+ library.write('<rulesetlibrary gitcommitid="%s">' % commit_id)
33
+except:
34
+ # Chromium
35
+ library.write('<rulesetlibrary>')
36
+
37
# Include the filename.xml as the "f" attribute
38
for rfile in sorted(glob("chrome/content/rules/*.xml")):
39
ruleset = open(rfile).read()
0 commit comments