diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-07-07 07:29:14 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-07-07 07:29:14 -0400 |
commit | 026001adf952f29a1546da7ed9947224ae2d0940 (patch) | |
tree | f08bb0a61970a2631a8998afa5ce84728160ac3f /grs/Interpret.py | |
parent | grs/PivotChroot.py: introduce 'pivot' directive. (diff) | |
download | grss-026001adf952f29a1546da7ed9947224ae2d0940.tar.gz grss-026001adf952f29a1546da7ed9947224ae2d0940.tar.bz2 grss-026001adf952f29a1546da7ed9947224ae2d0940.zip |
grs/Interpret.py: build lines with initial # are comments.
Diffstat (limited to 'grs/Interpret.py')
-rw-r--r-- | grs/Interpret.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |