Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261463 Details for
Bug 353648
sys-apps/portage-9999: accept path as --repo argument for egencache
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fulfill this RFE
0001-egencache-accept-repo-absolute-path.patch (text/plain), 3.03 KB, created by
Malte Starostik
on 2011-02-04 00:09:39 UTC
(
hide
)
Description:
Patch to fulfill this RFE
Filename:
MIME Type:
Creator:
Malte Starostik
Created:
2011-02-04 00:09:39 UTC
Size:
3.03 KB
patch
obsolete
>From e50c479acfb30ba0397e3dffae647733bb49914e Mon Sep 17 00:00:00 2001 >From: Malte Starostik <m-starostik@versanet.de> >Date: Fri, 4 Feb 2011 00:55:11 +0100 >Subject: [PATCH] egencache: accept --repo=/absolute/path > >This makes egencache accept an absolute path to an overlay as an >alternative to a repository name. This facilitates operating on >overlays not listed in PORTDIR_OVERLAY without messing with >/etc/make.conf or --config-root > >Signed-off-by: Malte Starostik <m-starostik@versanet.de> >--- > bin/egencache | 12 +++++++++--- > man/egencache.1 | 1 + > 2 files changed, 10 insertions(+), 3 deletions(-) > >diff --git a/bin/egencache b/bin/egencache >index 76dd900..4178517 100755 >--- a/bin/egencache >+++ b/bin/egencache >@@ -39,7 +39,7 @@ from portage import os, _encodings, _unicode_encode, _unicode_decode > from _emerge.MetadataRegen import MetadataRegen > from portage.cache.cache_errors import CacheError, StatCollision > from portage.manifest import guessManifestFileType >-from portage.util import cmp_sort_key, writemsg_level >+from portage.util import cmp_sort_key, normalize_path, writemsg_level > from portage import cpv_getkey > from portage.dep import Atom, isjustname > from portage.versions import pkgcmp, pkgsplit, vercmp >@@ -80,7 +80,7 @@ def parse_args(args): > common = optparse.OptionGroup(parser, 'Common options') > common.add_option("--repo", > action="store", >- help="name of repo to operate on (default repo is located at $PORTDIR)") >+ help="name of or absolute path to repo to operate on (default repo is located at $PORTDIR)") > common.add_option("--config-root", > help="location of portage config files", > dest="portage_configroot") >@@ -727,8 +727,12 @@ def egencache_main(args): > # completely controlled by commandline arguments. > env = {} > >+ repo_path = None > if options.repo is None: > env['PORTDIR_OVERLAY'] = '' >+ elif options.repo.startswith(os.path.sep) and os.path.exists(options.repo): >+ repo_path = normalize_path(options.repo) >+ env['PORTDIR_OVERLAY'] = repo_path > > if options.cache_dir is not None: > env['PORTAGE_DEPCACHEDIR'] = options.cache_dir >@@ -770,7 +774,9 @@ def egencache_main(args): > > portdb = portage.portdbapi(mysettings=settings) > if options.repo is not None: >- repo_path = portdb.getRepositoryPath(options.repo) >+ if repo_path is None: >+ repo_path = portdb.getRepositoryPath(options.repo) >+ > if repo_path is None: > parser.error("Unable to locate repository named '%s'" % \ > (options.repo,)) >diff --git a/man/egencache.1 b/man/egencache.1 >index 56c2602..0c8bb80 100644 >--- a/man/egencache.1 >+++ b/man/egencache.1 >@@ -56,6 +56,7 @@ Name of the repo to operate on (default repo is located at \fBPORTDIR\fR). > The name should correspond the value of a \fBrepo_name\fR entry (see > \fBportage\fR(5)) from one of the repositories that is configured via the > \fBPORTDIR\fR or \fBPORTDIR_OVERLAY\fR variables (see \fBmake.conf\fR(5)). >+Alternatively, REPO can be given as an absolute path to the repository. > .TP > .BR "\-\-rsync" > When used together with the \fB\-\-update\fR action, this enables a workaround >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 353648
: 261463