ubuntu-cpc: Allow comments in series files

An upcoming addition of the disk-image target to several series files will
required some explanation.  Without comment support in series files that
is not possible.  This patch adds support for comments in series files.
This commit is contained in:
Robert C Jennings 2019-05-02 17:15:12 -05:00
parent c373d81ee0
commit 1257763c98
No known key found for this signature in database
GPG Key ID: 740C3D9EEDF2ED73

View File

@ -161,7 +161,7 @@ class MakeHooks:
with open(series_file, "r", encoding="utf-8") as fp:
for line in fp:
line = line.strip()
if not line:
if not line or line.startswith("#"):
continue
m = re.match(r"^\s*depends\s+(\S+.*)$", line)
if m: