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:
Harald Welte 2019-12-17 14:38:22 +01:00
parent 8d0605c4fb
commit a47e13ee49
1 changed files with 3 additions and 0 deletions

View File

@ -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()