mirror of https://gerrit.osmocom.org/osmo-ci
osmo-depcheck: Skip comment lines containing PKG_CHECK_CONFIG
This is a problem e.g. with current osmo-hlr containing "\t# FIXME: PKG_CHECK_MODULES() may return cached result here!" Change-Id: I30d539a895bf39aaabe907be9eb52d7e4b3977a7
This commit is contained in:
parent
8d0605c4fb
commit
a47e13ee49
|
@ -3,6 +3,7 @@
|
|||
|
||||
import sys
|
||||
import fnmatch
|
||||
import re
|
||||
|
||||
# Same folder
|
||||
import config
|
||||
|
@ -53,6 +54,8 @@ def parse_condition(line):
|
|||
# Only look at PKG_CHECK_MODULES lines
|
||||
if "PKG_CHECK_MODULES" not in line:
|
||||
return
|
||||
if re.search('#.*PKG_CHECK_MODULES', line):
|
||||
return
|
||||
|
||||
# Extract the condition
|
||||
ret = line.split(",")[1].split(")")[0].strip()
|
||||
|
|
Loading…
Reference in New Issue