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 1QsEdJ-0002hl-S8 for garchives@archives.gentoo.org; Sat, 13 Aug 2011 13:52:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B4DF21C136; Sat, 13 Aug 2011 13:52:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2C51C21C136 for ; Sat, 13 Aug 2011 13:52:05 +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 995131B4031 for ; Sat, 13 Aug 2011 13:52:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CD6EB80040 for ; Sat, 13 Aug 2011 13:52:03 +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: <38bbbfaeac507a3ee030c73428b9af5b60ec425b.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: man/, bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/egencache man/egencache.1 X-VCS-Directories: man/ bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 38bbbfaeac507a3ee030c73428b9af5b60ec425b Date: Sat, 13 Aug 2011 13:52:03 +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: b9caec4064f5f68daf20c6dd04bbfb6e commit: 38bbbfaeac507a3ee030c73428b9af5b60ec425b Author: Zac Medico gentoo org> AuthorDate: Sat Aug 13 13:51:43 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Aug 13 13:51:43 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D38bbbfae egencache: add --portdir-overlay option This will fix bug #353648. --- bin/egencache | 9 +++++++++ man/egencache.1 | 4 ++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/bin/egencache b/bin/egencache index 1b4265d..6d8df35 100755 --- a/bin/egencache +++ b/bin/egencache @@ -87,6 +87,9 @@ def parse_args(args): common.add_option("--portdir", help=3D"override the portage tree location", dest=3D"portdir") + common.add_option("--portdir-overlay", + help=3D"override the PORTDIR_OVERLAY variable (requires that --repo is= also specified)", + dest=3D"portdir_overlay") common.add_option("--tolerant", action=3D"store_true", help=3D"exit successfully if only minor errors occurred") @@ -164,6 +167,10 @@ def parse_args(args): parser.error("Not a directory: --cache-dir=3D'%s'" % \ (options.cache_dir,)) =20 + if options.portdir_overlay is not None and \ + options.repo is None: + parser.error("--portdir-overlay option requires --repo option") + for atom in args: try: atom =3D portage.dep.Atom(atom) @@ -764,6 +771,8 @@ def egencache_main(args): =20 if options.repo is None: env['PORTDIR_OVERLAY'] =3D '' + elif options.portdir_overlay: + env['PORTDIR_OVERLAY'] =3D options.portdir_overlay =20 if options.cache_dir is not None: env['PORTAGE_DEPCACHEDIR'] =3D options.cache_dir diff --git a/man/egencache.1 b/man/egencache.1 index 56c2602..9094595 100644 --- a/man/egencache.1 +++ b/man/egencache.1 @@ -47,6 +47,10 @@ Specifies that maximum load allowed when spawning mult= iple jobs. .BR "\-\-portdir=3DPORTDIR" Override the portage tree location. .TP +.BR "\-\-portdir\-overlay=3DPORTDIR_OVERLAY" +Override the PORTDIR_OVERLAY variable (requires that +\-\-repo is also specified). +.TP .BR "\-\-preserve\-comments" Preserve the comments found in the output use.local.desc file. This requ= ires the output file to exist before egencache is called.