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 3FE22138247 for ; Sun, 19 Jan 2014 19:30:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1EED0E0BEF; Sun, 19 Jan 2014 19:30:50 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 749CCE0BD2 for ; Sun, 19 Jan 2014 19:30:49 +0000 (UTC) Received: from localhost.localdomain ([88.150.18.76]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LikE1-1VSsyQ3mKD-00d2Tz for ; Sun, 19 Jan 2014 20:30:48 +0100 From: Sebastian Luther To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCH] Implement FEATURES="mirror" for emerge (bug 498498) Date: Sun, 19 Jan 2014 20:30:41 +0100 Message-Id: <1390159841-23973-1-git-send-email-SebastianLuther@gmx.de> X-Mailer: git-send-email 1.8.3.2 X-Provags-ID: V03:K0:lper/ox6DHAcQpY00SYfKhkLHDw+0mBpQcGsrtZMDiiO034LHa9 3g+8tm/jB0dvM8V9mGqQMQboikmmGaUgmVG8QSc56eNVeM+rHuJdbMMBtok/QhEGXsbmY/S /kCrawa94LjtKujGLor7jXBFYW4IoGKPJHrfJyV0YaQ1Zudylm1K0k2alAd+XR31DJIjMxK DoHw115VZrBjFMqDcp1nA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: fcaf513d-2fb5-4d82-b845-79ddb7f4a5b5 X-Archives-Hash: a038ec23678b816dcb1e7dae6903b659 This was only implemented for the ebuild command before. --- pym/_emerge/Scheduler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index d663e97..2fd4d7e 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -165,6 +165,8 @@ class Scheduler(PollScheduler): self._build_opts.buildpkg_exclude = InternalPackageSet( \ initial_atoms=" ".join(myopts.get("--buildpkg-exclude", [])).split(), \ allow_wildcard=True, allow_repo=True) + if "mirror" in self.settings.features: + self._build_opts.fetch_all_uri = True self._binpkg_opts = self._binpkg_opts_class() for k in self._binpkg_opts.__slots__: @@ -752,11 +754,11 @@ class Scheduler(PollScheduler): pass elif pkg.type_name == "ebuild": - prefetcher = EbuildFetcher(background=True, config_pool=self._ConfigPool(pkg.root, self._allocate_config, self._deallocate_config), - fetchonly=1, logfile=self._fetch_log, + fetchonly=1, fetchall=self._build_opts.fetch_all_uri, + logfile=self._fetch_log, pkg=pkg, prefetch=True, scheduler=self._sched_iface) elif pkg.type_name == "binary" and \ -- 1.8.3.2