Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/grss:master commit in: grs/
Date: Sat, 10 Oct 2015 11:20:12
Message-Id: 1444476346.0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd.blueness@gentoo
1 commit: 0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 11:25:46 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 11:25:46 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=0d4eeb10
7
8 grs/Interpret.py: don't run sync/seed during mock run.
9
10 grs/Interpret.py | 10 ++++++++--
11 1 file changed, 8 insertions(+), 2 deletions(-)
12
13 diff --git a/grs/Interpret.py b/grs/Interpret.py
14 index ea6d2e2..c90a9bd 100644
15 --- a/grs/Interpret.py
16 +++ b/grs/Interpret.py
17 @@ -156,13 +156,19 @@ class Interpret(Daemon):
18 # sync() is done unconditionally for an update run.
19 progress = os.path.join(tmpdir, '.completed_sync')
20 if not os.path.exists(progress) or self.update_run:
21 - _sy.sync()
22 + if self.mock_run:
23 + _lo.log(_line)
24 + else:
25 + _sy.sync()
26 stampit(progress)
27
28 # seed() is never done for an update run
29 progress = os.path.join(tmpdir, '.completed_seed')
30 if not os.path.exists(progress) and not self.update_run:
31 - _se.seed()
32 + if self.mock_run:
33 + _lo.log(_line)
34 + else:
35 + _se.seed()
36 stampit(progress)
37
38 # Read the build script and execute a line at a time.