From f006bd04d9bc7ea29c0da7801b9ba567601df263 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 22 Jun 2010 20:54:07 -0700 Subject: Add a --portdir option, requested by Daniel Robbins. --- bin/egencache | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/egencache b/bin/egencache index fc046b711..c078d98a7 100755 --- a/bin/egencache +++ b/bin/egencache @@ -62,6 +62,9 @@ def parse_args(args): action="store", help="max load allowed when spawning multiple jobs", dest="load_average") + parser.add_option("--portdir", + help="override the portage tree location", + dest="portdir") parser.add_option("--rsync", action="store_true", help="enable rsync stat collision workaround " + \ @@ -292,6 +295,9 @@ def egencache_main(args): if options.cache_dir is not None: env['PORTAGE_DEPCACHEDIR'] = options.cache_dir + if options.portdir is not None: + env['PORTDIR'] = options.portdir + settings = portage.config(config_root=config_root, target_root='/', local_config=False, env=env) -- cgit v1.2.3-1-g7c22