From 1257763c98aeff8c30643914b6b0bcfffc623d48 Mon Sep 17 00:00:00 2001 From: Robert C Jennings Date: Thu, 2 May 2019 17:15:12 -0500 Subject: [PATCH] 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. --- live-build/ubuntu-cpc/hooks.d/make-hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-cpc/hooks.d/make-hooks b/live-build/ubuntu-cpc/hooks.d/make-hooks index 7796be3d..08ae45be 100755 --- a/live-build/ubuntu-cpc/hooks.d/make-hooks +++ b/live-build/ubuntu-cpc/hooks.d/make-hooks @@ -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: