commit:     2b87ad4ab4658b834f9cb0683ea3f7fb75781719
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Oct  8 18:08:39 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Oct  8 18:08:39 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=2b87ad4a

grs/Interpret.py: prepare for refactoring large if clause.

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

diff --git a/grs/Interpret.py b/grs/Interpret.py
index 4e411fd..072574e 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -79,7 +79,7 @@ class Interpret(Daemon):
             sys.exit(signum + 128)
 
 
-        def smartlog(_log, obj, has_obj=True):
+        def smartlog(_log, obj, has_obj):
             """ This logs whether or not we have a grammatically incorrect
                 directive, or we are doing a mock run, and returns whether
                 or not we should execute the directive:
@@ -202,7 +202,7 @@ class Interpret(Daemon):
                     stampit(progress)
                     continue
                 if verb == 'log':
-                    if smartlog(_line, obj):
+                    if smartlog(_line, obj, True):
                         stampit(progress)
                         continue
                     if obj == 'stamp':
@@ -220,17 +220,17 @@ class Interpret(Daemon):
                         continue
                     _md.umount_all()
                 elif verb == 'populate':
-                    if smartlog(_line, obj):
+                    if smartlog(_line, obj, True):
                         stampit(progress)
                         continue
                     _po.populate(cycle=int(obj))
                 elif verb == 'runscript':
-                    if smartlog(_line, obj):
+                    if smartlog(_line, obj, True):
                         stampit(progress)
                         continue
                     _ru.runscript(obj)
                 elif verb == 'pivot':
-                    if smartlog(_line, obj):
+                    if smartlog(_line, obj, True):
                         stampit(progress)
                         continue
                     _pc.pivot(obj, _md)

Reply via email to