Skip to content

Commit 6064ce0

Browse files
committed
GIT_COMMIT_ID isn't used in the chromium build (yet)
1 parent 07fc6b0 commit 6064ce0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

utils/merge-rulesets.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727
# XXX TODO replace all sed commands with native Python
2828
#strip_oneline_comment = re.compile(r"<!--.*?-->")
2929

30-
commit_id = os.environ["GIT_COMMIT_ID"]
31-
library.write('<rulesetlibrary gitcommitid="%s">' % commit_id)
30+
try:
31+
commit_id = os.environ["GIT_COMMIT_ID"]
32+
library.write('<rulesetlibrary gitcommitid="%s">' % commit_id)
33+
except:
34+
# Chromium
35+
library.write('<rulesetlibrary>')
36+
3237
# Include the filename.xml as the "f" attribute
3338
for rfile in sorted(glob("chrome/content/rules/*.xml")):
3439
ruleset = open(rfile).read()

0 commit comments

Comments
 (0)