From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-838999-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id A97B113888F
	for <garchives@archives.gentoo.org>; Thu,  8 Oct 2015 18:03:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 776C221C001;
	Thu,  8 Oct 2015 18:03:04 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1B46D21C001
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Oct 2015 18:03:03 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B3F76341978
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Oct 2015 18:03:01 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1D908C48
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Oct 2015 18:03:00 +0000 (UTC)
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" <blueness@gentoo.org>
Message-ID: <1444327719.2b87ad4ab4658b834f9cb0683ea3f7fb75781719.blueness@gentoo>
Subject: [gentoo-commits] proj/grss:master commit in: grs/
X-VCS-Repository: proj/grss
X-VCS-Files: grs/Interpret.py
X-VCS-Directories: grs/
X-VCS-Committer: blueness
X-VCS-Committer-Name: Anthony G. Basile
X-VCS-Revision: 2b87ad4ab4658b834f9cb0683ea3f7fb75781719
X-VCS-Branch: master
Date: Thu,  8 Oct 2015 18:03:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 553b0fea-6c20-4724-8b82-c4f34529e395
X-Archives-Hash: 45fa6465e00fa87178fe956f4de0bc9a

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)