1 |
commit: 026001adf952f29a1546da7ed9947224ae2d0940 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 7 11:29:14 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 7 11:29:14 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=026001ad |
7 |
|
8 |
grs/Interpret.py: build lines with initial # are comments. |
9 |
|
10 |
grs/Interpret.py | 5 +++++ |
11 |
1 file changed, 5 insertions(+) |
12 |
|
13 |
diff --git a/grs/Interpret.py b/grs/Interpret.py |
14 |
index 8b1166b..1f3ca03 100644 |
15 |
--- a/grs/Interpret.py |
16 |
+++ b/grs/Interpret.py |
17 |
@@ -115,6 +115,11 @@ class Interpret(Daemon): |
18 |
for l in s.readlines(): |
19 |
line_number += 1 |
20 |
|
21 |
+ # Skip lines with initial # as comments |
22 |
+ m = re.search('^(#).*$', l) |
23 |
+ if m: |
24 |
+ continue |
25 |
+ |
26 |
# For a release run, execute every line of the build script. |
27 |
# For an update run, exexute only lines with a leading +. |
28 |
ignore_stamp = False |