Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fix ovsdb sonar configuration"
[releng/builder.git]
/
check_prefix.py
diff --git
a/check_prefix.py
b/check_prefix.py
index 08f83653d98f7b34a79baaf22e66ee783baf114b..de561981c5f6f0491526457a0e84e3e5497274b8 100755
(executable)
--- a/
check_prefix.py
+++ b/
check_prefix.py
@@
-24,7
+24,7
@@
def check_prefix(filename):
"""Check if a prefix was checked into this repo."""
with open(filename, "r") as _file:
for num, line in enumerate(_file, 1):
"""Check if a prefix was checked into this repo."""
with open(filename, "r") as _file:
for num, line in enumerate(_file, 1):
- if re.search(
"
prefix:", line):
+ if re.search(
r"^\s+
prefix:", line):
if '""' not in line:
print(
"ERROR: A non-blank prefix is defined in "
if '""' not in line:
print(
"ERROR: A non-blank prefix is defined in "