From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R3E2Y-0003Am-Qm for garchives@archives.gentoo.org; Mon, 12 Sep 2011 21:27:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1945C21C2C9; Mon, 12 Sep 2011 21:27:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E251521C2E1 for ; Mon, 12 Sep 2011 21:27:31 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 794E61B4039 for ; Mon, 12 Sep 2011 21:27:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 47F8D8004C for ; Mon, 12 Sep 2011 21:27:30 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master 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: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: af7933ee4df1d62a6567510dc7e84a0cf13a09ef Date: Mon, 12 Sep 2011 21:27:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 674a4737b9c463408c39131bd2beb771 commit: af7933ee4df1d62a6567510dc7e84a0cf13a09ef Author: Brian Harring gmail com> AuthorDate: Thu Sep 1 21:50:25 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Sep 12 21:23:10 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Daf7933ee add layout.conf awareness of thin-manifests For any repo that wants thin (just src_uri digests), they just need to ad= d thin-manifests =3D true to their layout.conf. Again, this should only be used in repositories were the backing vcs provides checksums for the ebuild data. --- pym/portage/repository/config.py | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/co= nfig.py index 9e308a8..17839d7 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -42,7 +42,7 @@ class RepoConfig(object): """Stores config of one repository""" =20 __slots__ =3D ['aliases', 'eclass_overrides', 'eclass_locations', 'loca= tion', 'user_location', 'masters', 'main_repo', - 'missing_repo_name', 'name', 'priority', 'sync', 'format', 'load_manif= est'] + 'missing_repo_name', 'name', 'priority', 'sync', 'format', 'thin_manif= est'] =20 def __init__(self, name, repo_opts): """Build a RepoConfig with options in repo_opts @@ -111,7 +111,11 @@ class RepoConfig(object): missing =3D False self.name =3D name self.missing_repo_name =3D missing - self.load_manifest =3D manifest.Manifest + self.thin_manifest =3D False + + def load_manifest(self, *args, **kwds): + kwds['thin'] =3D self.thin_manifest + return manifest.Manifest(*args, **kwds) =20 def update(self, new_repo): """Update repository with options in another RepoConfig""" @@ -327,6 +331,9 @@ class RepoConfigLoader(object): aliases.extend(repo.aliases) repo.aliases =3D tuple(sorted(set(aliases))) =20 + if layout_data.get('thin-manifests', '').lower() =3D=3D 'true': + repo.thin_manifest =3D True + #Take aliases into account. new_prepos =3D {} for repo_name, repo in prepos.items():