aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-17 14:38:22 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-17 14:38:22 +0100
commita47e13ee49c6aaa488397769eefa6d5738ae060c (patch)
tree307ff8ae07645efe55106dc584d0ff202ee49180
parent8d0605c4fb2527c376718800a5348b0da77db766 (diff)
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
-rw-r--r--scripts/osmo-depcheck/parse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/osmo-depcheck/parse.py b/scripts/osmo-depcheck/parse.py
index 06f932e..e9914f8 100644
--- a/scripts/osmo-depcheck/parse.py
+++ b/scripts/osmo-depcheck/parse.py
@@ -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()