commit: b0f3ea3a17df523436e82fb0629eeb458dcd0025
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 9 23:12:06 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Oct 9 23:12:06 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=b0f3ea3a
grs/Interpret.py: skip non-functional build lines
grs/Interpret.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/grs/Interpret.py b/grs/Interpret.py
index 072574e..744c3cc 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -161,9 +161,9 @@ class Interpret(Daemon):
for _line in _file.readlines():
line_number += 1
- # Skip lines with initial # as comments.
- _match = re.search(r'^(#).*$', _line)
- if _match:
+ # Skip lines with initial # or blank lines.
+ if re.search(r'^(#).*$', _line) or len(_line.strip()) == 0:
+ stampit(progress)
continue
# For a release run, execute every line of the build script.
@@ -198,9 +198,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)