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 B9971138A1F for ; Tue, 22 Apr 2014 02:36:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4402CE0954; Tue, 22 Apr 2014 02:36:20 +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 A2BC9E094E for ; Tue, 22 Apr 2014 02:36:18 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1CD3A33FF84 for ; Tue, 22 Apr 2014 02:36:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 409D3187AC for ; Tue, 22 Apr 2014 02:36:15 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1396172564.6ff8a853cc08ccf9fe4ba85377032bd5175a45ff.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/repository/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/repository/config.py X-VCS-Directories: pym/portage/repository/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 6ff8a853cc08ccf9fe4ba85377032bd5175a45ff X-VCS-Branch: plugin-sync Date: Tue, 22 Apr 2014 02:36:15 +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: efcd2fa0-661e-45bf-af88-e54433c54d37 X-Archives-Hash: 7614c5546f67ef6cf9859b4f3eaa799a commit: 6ff8a853cc08ccf9fe4ba85377032bd5175a45ff Author: Brian Dolbec gentoo org> AuthorDate: Sun Mar 30 09:42:44 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun Mar 30 09:42:44 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6ff8a853 Add auto_sync attribute to RepoConfig --- pym/portage/repository/config.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index b4b3aee..bc3e3c3 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -81,8 +81,8 @@ class RepoConfig(object): """Stores config of one repository""" __slots__ = ('aliases', 'allow_missing_manifest', 'allow_provide_virtual', - 'cache_formats', 'create_manifest', 'disable_manifest', 'eapi', - 'eclass_db', 'eclass_locations', 'eclass_overrides', + 'auto_sync', 'cache_formats', 'create_manifest', 'disable_manifest', + 'eapi', 'eclass_db', 'eclass_locations', 'eclass_overrides', 'find_invalid_path_char', 'force', 'format', 'local_config', 'location', 'main_repo', 'manifest_hashes', 'missing_repo_name', 'name', 'portage1_profiles', 'portage1_profiles_compat', 'priority', @@ -161,6 +161,11 @@ class RepoConfig(object): sync_uri = sync_uri.strip() self.sync_uri = sync_uri or None + auto_sync = repo_opts.get('auto-sync') + if auto_sync is not None: + auto_sync = auto_sync.strip() + self.auto_sync = auto_sync or None + # Not implemented. format = repo_opts.get('format') if format is not None: @@ -557,7 +562,7 @@ class RepoConfigLoader(object): repo = RepoConfig(sname, optdict, local_config=local_config) # Perform repos.conf sync variable validation - portage.sync.validate_config(repo) + portage.sync.validate_config(repo, logging) # For backward compatibility with locations set via PORTDIR and # PORTDIR_OVERLAY, delay validation of the location and repo.name