commit:     026001adf952f29a1546da7ed9947224ae2d0940
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  7 11:29:14 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Jul  7 11:29:14 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=026001ad

grs/Interpret.py: build lines with initial # are comments.

 grs/Interpret.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/grs/Interpret.py b/grs/Interpret.py
index 8b1166b..1f3ca03 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -115,6 +115,11 @@ class Interpret(Daemon):
             for l in s.readlines():
                 line_number += 1
 
+                # Skip lines with initial # as comments
+                m = re.search('^(#).*$', l)
+                if m:
+                    continue
+
                 # For a release run, execute every line of the build script.
                 # For an update run, exexute only lines with a leading +.
                 ignore_stamp = False

Reply via email to