From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EFC30139694 for ; Tue, 21 Feb 2017 01:33:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B299A21C04E; Tue, 21 Feb 2017 01:33:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8F40121C04E for ; Tue, 21 Feb 2017 01:33:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39D62340FDA for ; Tue, 21 Feb 2017 01:33:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0630A4F16 for ; Tue, 21 Feb 2017 01:33:07 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1487635298.75f0936b8866b143643abcd6c302cd72fc71eef3.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 75f0936b8866b143643abcd6c302cd72fc71eef3 X-VCS-Branch: master Date: Tue, 21 Feb 2017 01:33:07 +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: b9cf1205-d3ec-467e-a35e-091bc71ac4d4 X-Archives-Hash: 6e307bc88be8dffdf1a82e983aaad2c5 commit: 75f0936b8866b143643abcd6c302cd72fc71eef3 Author: Alexandru Elisei gmail com> AuthorDate: Mon Feb 20 17:53:56 2017 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Feb 21 00:01:38 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=75f0936b emerge: sync given repos even if auto-sync is false (bug 610328) The auto-sync attribute is more useful for emerge --sync with zero repo arguments. When specific repo arguments are given to emerge --sync, it makes sense to sync those repos regardless of the auto-sync attribute. X-Gentoo-Bug: 610328 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=610328 pym/_emerge/actions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 71e362e3c..cc0269d5d 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1999,9 +1999,13 @@ def action_sync(emerge_config, trees=DeprecationWarning, action=action, args=[], trees=trees, opts=opts) syncer = SyncRepos(emerge_config) - return_messages = "--quiet" not in emerge_config.opts - success, msgs = syncer.auto_sync(options={'return-messages': return_messages}) + options = {'return-messages' : return_messages} + if emerge_config.args: + options['repo'] = emerge_config.args + success, msgs = syncer.repo(options=options) + else: + success, msgs = syncer.auto_sync(options=options) if return_messages: print_results(msgs)