From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 664BE13888F for ; Sat, 10 Oct 2015 11:20:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F10DFE07E8; Sat, 10 Oct 2015 11:20:08 +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 A0513E07E8 for ; Sat, 10 Oct 2015 11:20:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BAEAB340768 for ; Sat, 10 Oct 2015 11:20:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7E26027A for ; Sat, 10 Oct 2015 11:20:04 +0000 (UTC) From: "Anthony G. Basile" 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" Message-ID: <1444476346.0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd.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: 0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd X-VCS-Branch: master Date: Sat, 10 Oct 2015 11:20:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5c24af31-ab78-4fe5-9c24-271ace4673b8 X-Archives-Hash: 99e2fa1918de7bcb6e5534e2a2e240f3 commit: 0d4eeb1055010e0ee9b08ee6e9296fff0f4021dd Author: Anthony G. Basile gentoo org> AuthorDate: Sat Oct 10 11:25:46 2015 +0000 Commit: Anthony G. Basile gentoo 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.