diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-10-09 19:12:06 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-10-09 19:38:34 -0400 |
commit | 3a1205cfcc515ac07fa63e20c8c9988731cbc3fb (patch) | |
tree | 00f7a5ff2f024bb1bd5d9586a5f70bb45f49416c /grs/Interpret.py | |
parent | grs/WorldConf.py: fix renaming s -> _section. (diff) | |
download | grss-3a1205cfcc515ac07fa63e20c8c9988731cbc3fb.tar.gz grss-3a1205cfcc515ac07fa63e20c8c9988731cbc3fb.tar.bz2 grss-3a1205cfcc515ac07fa63e20c8c9988731cbc3fb.zip |
grs/Interpret.py: skip non-functional build lines
Diffstat (limited to 'grs/Interpret.py')
-rw-r--r-- | grs/Interpret.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/grs/Interpret.py b/grs/Interpret.py index 072574e..43c0e48 100644 --- a/grs/Interpret.py +++ b/grs/Interpret.py @@ -161,9 +161,11 @@ class Interpret(Daemon): for _line in _file.readlines(): line_number += 1 - # Skip lines with initial # as comments. - _match = re.search(r'^(#).*$', _line) - if _match: + # Do nothing for lines with initial # or blank lines. + # Create a progress stamp only if we are not doing an update run. + if re.search(r'^(#).*$', _line) or len(_line.strip()) == 0: + if not self.update_run: + stampit(progress) continue # For a release run, execute every line of the build script. @@ -198,9 +200,6 @@ class Interpret(Daemon): # build script are implemented. Note: 'hashit' can only come # after 'tarit' or 'isoit' so that it knows the medium_name # to hash, ie whether its a .tar.xz or a .iso - if verb == '': - stampit(progress) - continue if verb == 'log': if smartlog(_line, obj, True): stampit(progress) |