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 CEB80138010 for ; Sat, 8 Sep 2012 16:50:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EE06E032F; Sat, 8 Sep 2012 16:50:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3D2E5E032F for ; Sat, 8 Sep 2012 16:50:33 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A16DC33D218 for ; Sat, 8 Sep 2012 16:50:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4E746E543D for ; Sat, 8 Sep 2012 16:50:31 +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: <1347123019.85dc824f7b7c595482cadc084411a455c2f00d32.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/egencache X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 85dc824f7b7c595482cadc084411a455c2f00d32 X-VCS-Branch: master Date: Sat, 8 Sep 2012 16:50:31 +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: 32d07299-f357-4e62-8b44-20af312a4951 X-Archives-Hash: 8872fbdae67679ed25d001b1411723d7 commit: 85dc824f7b7c595482cadc084411a455c2f00d32 Author: Zac Medico gentoo org> AuthorDate: Sat Sep 8 16:50:19 2012 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Sep 8 16:50:19 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=85dc824f egencache: skip metadata-transfer more often --- bin/egencache | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/egencache b/bin/egencache index 18ab45d..1b4fa0c 100755 --- a/bin/egencache +++ b/bin/egencache @@ -35,7 +35,6 @@ import portage from portage import os, _encodings, _unicode_encode, _unicode_decode from _emerge.MetadataRegen import MetadataRegen from portage.cache.cache_errors import CacheError, StatCollision -from portage.cache.flat_hash import md5_database from portage.manifest import guessManifestFileType from portage.util import cmp_sort_key, writemsg_level from portage import cpv_getkey @@ -887,8 +886,10 @@ def egencache_main(args): cache = repo_config.get_pregenerated_cache( portage.dbapi.dbapi._known_keys, readonly=True) if cache is not None: - if isinstance(cache, md5_database) and \ - os.path.isdir(cache.location): + if cache.complete_eclass_entries: + # If the portdbapi's pregenerated cache supports eclass + # validation, then there's no need to forcibly enable + # metadata-transfer. metadata_transfer = False cache = None