diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/egencache | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/egencache b/bin/egencache index 1b4265df1..6d8df35b5 100755 --- a/bin/egencache +++ b/bin/egencache @@ -87,6 +87,9 @@ def parse_args(args): common.add_option("--portdir", help="override the portage tree location", dest="portdir") + common.add_option("--portdir-overlay", + help="override the PORTDIR_OVERLAY variable (requires that --repo is also specified)", + dest="portdir_overlay") common.add_option("--tolerant", action="store_true", help="exit successfully if only minor errors occurred") @@ -164,6 +167,10 @@ def parse_args(args): parser.error("Not a directory: --cache-dir='%s'" % \ (options.cache_dir,)) + 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 = portage.dep.Atom(atom) @@ -764,6 +771,8 @@ def egencache_main(args): if options.repo is None: env['PORTDIR_OVERLAY'] = '' + elif options.portdir_overlay: + env['PORTDIR_OVERLAY'] = options.portdir_overlay if options.cache_dir is not None: env['PORTAGE_DEPCACHEDIR'] = options.cache_dir |