commit: 0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 11:25:46 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 11:25:46 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=0d4eeb10
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.