X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=check_prefix.py;h=de561981c5f6f0491526457a0e84e3e5497274b8;hb=b86f63b78001aac653f72335b55a158ea411c330;hp=08f83653d98f7b34a79baaf22e66ee783baf114b;hpb=c8362308bbb3cdff371cab923ea54edb0f1c2d9a;p=releng%2Fbuilder.git diff --git a/check_prefix.py b/check_prefix.py index 08f83653d..de561981c 100755 --- 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): - 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 "