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.
sil2100/backport-datasource-raspi3
Robert C Jennings 6 years ago
parent afc482a375
commit 7da22ddf55
No known key found for this signature in database
GPG Key ID: 740C3D9EEDF2ED73

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

Loading…
Cancel
Save