From 0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 10 Oct 2015 07:25:46 -0400 Subject: grs/Interpret.py: don't run sync/seed during mock run. --- grs/Interpret.py | 10 ++++++++-- 1 file 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. -- cgit v1.2.3-65-gdbad