From: "Arfrever Frehtes Taifersar Arahesis" <arfrever.fta@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: man/, bin/
Date: Tue, 23 Jul 2013 20:42:18 +0000 (UTC) [thread overview]
Message-ID: <1374612080.04612ddc5200e7cd796fb0b49b69d77b5e502ab3.arfrever@gentoo> (raw)
commit: 04612ddc5200e7cd796fb0b49b69d77b5e502ab3
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Tue Jul 23 20:41:20 2013 +0000
Commit: Arfrever Frehtes Taifersar Arahesis <arfrever.fta <AT> gmail <DOT> com>
CommitDate: Tue Jul 23 20:41:20 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=04612ddc
egencache: Require --repo option.
---
bin/egencache | 31 +++++++++----------------------
man/egencache.1 | 10 ++++------
2 files changed, 13 insertions(+), 28 deletions(-)
diff --git a/bin/egencache b/bin/egencache
index 2c5dddc..921c461 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -97,7 +97,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 repo to operate on")
common.add_option("--config-root",
help="location of portage config files",
dest="portage_configroot")
@@ -111,10 +111,10 @@ def parse_args(args):
help="override the portage tree location (deprecated in favor of --repositories-configuration)",
dest="portdir")
common.add_option("--portdir-overlay",
- help="override the PORTDIR_OVERLAY variable (requires that --repo is also specified) (deprecated in favor of --repositories-configuration)",
+ help="override the PORTDIR_OVERLAY variable (deprecated in favor of --repositories-configuration)",
dest="portdir_overlay")
common.add_option("--repositories-configuration",
- help="override configuration of repositories (in format of repos.conf) (requires that --repo is also specified)",
+ help="override configuration of repositories (in format of repos.conf)",
dest="repositories_configuration")
common.add_option("--sign-manifests",
type="choice",
@@ -213,10 +213,7 @@ def parse_args(args):
(options.cache_dir,))
if options.repo is None:
- if options.repositories_configuration is not None:
- parser.error("--repositories-configuration option requires --repo option")
- if options.portdir_overlay is not None:
- parser.error("--portdir-overlay option requires --repo option")
+ parser.error("--repo option is required")
for atom in args:
try:
@@ -862,9 +859,7 @@ def egencache_main(args):
config_root = options.config_root
- if options.repo is None:
- env['PORTDIR_OVERLAY'] = ''
- elif options.repositories_configuration is not None:
+ if options.repositories_configuration is not None:
env['PORTAGE_REPOSITORIES'] = options.repositories_configuration
elif options.portdir_overlay:
env['PORTDIR_OVERLAY'] = options.portdir_overlay
@@ -897,18 +892,10 @@ def egencache_main(args):
parser.error('No action specified')
return 1
- repo_path = None
- if options.repo is not None:
- repo_path = settings.repositories.treemap.get(options.repo)
- if repo_path is None:
- parser.error("Unable to locate repository named '%s'" % \
- (options.repo,))
- return 1
- else:
- repo_path = settings.repositories.mainRepoLocation()
- if not repo_path:
- parser.error("PORTDIR is undefined")
- return 1
+ repo_path = settings.repositories.treemap.get(options.repo)
+ if repo_path is None:
+ parser.error("Unable to locate repository named '%s'" % (options.repo,))
+ return 1
repo_config = settings.repositories.get_repo_for_location(repo_path)
diff --git a/man/egencache.1 b/man/egencache.1
index 81c3bbb..34e0b7b 100644
--- a/man/egencache.1
+++ b/man/egencache.1
@@ -61,8 +61,7 @@ Override the portage tree location. This option is deprecated in favor of
\-\-repositories\-configuration option.
.TP
.BR "\-\-portdir\-overlay=PORTDIR_OVERLAY"
-Override the PORTDIR_OVERLAY variable (requires that
-\-\-repo is also specified). This option is deprecated in favor of
+Override the PORTDIR_OVERLAY variable. This option is deprecated in favor of
\-\-repositories\-configuration option.
.TP
.BR "\-\-preserve\-comments"
@@ -70,10 +69,8 @@ Preserve the comments found in the output use.local.desc file. This requires
the output file to exist before egencache is called.
.TP
.BR "\-\-repo=REPO"
-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)).
+Name of the repo to operate on. The name should correspond the value of
+a \fBrepo_name\fR entry (see \fBportage\fR(5)) from one of the repositories.
.TP
.BR "\-\-repositories\-configuration=REPOSITORIES_CONFIGURATION"
Override configuration of repositories. The argument of this option has
@@ -153,6 +150,7 @@ Please report bugs via http://bugs.gentoo.org/
.SH "AUTHORS"
.nf
Zac Medico <zmedico@gentoo.org>
+Arfrever Frehtes Taifersar Arahesis <arfrever@apache.org>
.fi
.SH "FILES"
.TP
next reply other threads:[~2013-07-23 20:42 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 20:42 Arfrever Frehtes Taifersar Arahesis [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-08-30 17:05 [gentoo-commits] proj/portage:master commit in: man/, bin/ Zac Medico
2013-08-22 4:06 Zac Medico
2013-08-22 2:01 Zac Medico
2013-08-04 20:51 Zac Medico
2013-07-13 9:35 Arfrever Frehtes Taifersar Arahesis
2013-05-18 18:47 Zac Medico
2013-04-28 22:06 Zac Medico
2012-10-31 21:32 Zac Medico
2012-10-11 3:10 Zac Medico
2012-09-24 20:26 Zac Medico
2012-09-24 3:47 Mike Frysinger
2012-06-17 15:46 Zac Medico
2012-03-17 21:33 Zac Medico
2012-03-11 2:56 Mike Frysinger
2012-03-11 2:44 Mike Frysinger
2012-01-02 7:48 Zac Medico
2011-12-22 23:43 Zac Medico
2011-12-21 20:08 Zac Medico
2011-12-21 20:04 Zac Medico
2011-10-17 4:22 Zac Medico
2011-10-14 18:06 Zac Medico
2011-08-31 3:05 Zac Medico
2011-08-13 13:52 Zac Medico
2011-08-11 3:00 Zac Medico
2011-06-24 10:23 Zac Medico
2011-05-01 15:58 Zac Medico
2011-05-01 14:52 Arfrever Frehtes Taifersar Arahesis
2011-05-01 1:23 Arfrever Frehtes Taifersar Arahesis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1374612080.04612ddc5200e7cd796fb0b49b69d77b5e502ab3.arfrever@gentoo \
--to=arfrever.fta@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox