aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-10 07:25:46 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-10 07:25:46 -0400
commit0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd (patch)
tree1fcb7843fdf7ef128367fcb0c9c0b121942a205a
parentgrs/Interpret.py: exec() is bad, get rid of it. (diff)
downloadgrss-0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd.zip
grss-0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd.tar.gz
grss-0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd.tar.bz2
grs/Interpret.py: don't run sync/seed during mock run.
-rw-r--r--grs/Interpret.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/grs/Interpret.py b/grs/Interpret.py
index ea6d2e2..c90a9bd 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -156,13 +156,19 @@ class Interpret(Daemon):
# sync() is done unconditionally for an update run.
progress = os.path.join(tmpdir, '.completed_sync')
if not os.path.exists(progress) or self.update_run:
- _sy.sync()
+ if self.mock_run:
+ _lo.log(_line)
+ else:
+ _sy.sync()
stampit(progress)
# seed() is never done for an update run
progress = os.path.join(tmpdir, '.completed_seed')
if not os.path.exists(progress) and not self.update_run:
- _se.seed()
+ if self.mock_run:
+ _lo.log(_line)
+ else:
+ _se.seed()
stampit(progress)
# Read the build script and execute a line at a time.