From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: man/, pym/portage/package/ebuild/_config/, bin/
Date: Fri, 14 Oct 2011 16:30:03 +0000 (UTC) [thread overview]
Message-ID: <af2c4446880020871f7aaa0f3ff4f75707dd027e.zmedico@gentoo> (raw)
commit: af2c4446880020871f7aaa0f3ff4f75707dd027e
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 16:29:37 2011 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 16:29:37 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=af2c4446
repoman: support REPOMAN_DEFAULT_OPTS variable
---
bin/repoman | 9 +++++++++
man/repoman.1 | 3 +++
.../package/ebuild/_config/special_env_vars.py | 2 +-
3 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/bin/repoman b/bin/repoman
index 38f9694..65c1f40 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -218,6 +218,10 @@ def ParseArgs(argv, qahelp):
parser.add_option('-i', '--ignore-arches', dest='ignore_arches', action='store_true',
default=False, help='ignore arch-specific failures (where arch != host)')
+ parser.add_option("--ignore-default-opts",
+ action="store_true",
+ help="do not use the REPOMAN_DEFAULT_OPTS environment variable")
+
parser.add_option('-I', '--ignore-masked', dest='ignore_masked', action='store_true',
default=False, help='ignore masked packages (not allowed with commit mode)')
@@ -247,6 +251,11 @@ def ParseArgs(argv, qahelp):
opts, args = parser.parse_args(argv[1:])
+ if not opts.ignore_default_opts:
+ default_opts = repoman_settings.get("REPOMAN_DEFAULT_OPTS", "").split()
+ if default_opts:
+ opts, args = parser.parse_args(default_opts + sys.argv[1:])
+
if opts.mode == 'help':
parser.print_help(short=False)
diff --git a/man/repoman.1 b/man/repoman.1
index f0c9eff..bc54657 100644
--- a/man/repoman.1
+++ b/man/repoman.1
@@ -47,6 +47,9 @@ Only check packages that have uncommitted modifications
\fB\-i\fR, \fB\-\-ignore\-arches\fR
Ignore arch-specific failures (where arch != host)
.TP
+\fB\-\-ignore\-default\-opts\fR
+Do not use the \fIREPOMAN_DEFAULT_OPTS\fR environment variable.
+.TP
\fB\-I\fR, \fB\-\-ignore\-masked\fR
Ignore masked packages (not allowed with commit mode)
.TP
diff --git a/pym/portage/package/ebuild/_config/special_env_vars.py b/pym/portage/package/ebuild/_config/special_env_vars.py
index 99321e2..517fdf3 100644
--- a/pym/portage/package/ebuild/_config/special_env_vars.py
+++ b/pym/portage/package/ebuild/_config/special_env_vars.py
@@ -157,7 +157,7 @@ environ_filter += [
"PORTAGE_RSYNC_EXTRA_OPTS", "PORTAGE_RSYNC_OPTS",
"PORTAGE_RSYNC_RETRIES", "PORTAGE_SYNC_STALE",
"PORTAGE_USE", "PORT_LOGDIR", "PORT_LOGDIR_CLEAN",
- "QUICKPKG_DEFAULT_OPTS",
+ "QUICKPKG_DEFAULT_OPTS", "REPOMAN_DEFAULT_OPTS",
"RESUMECOMMAND", "RESUMECOMMAND_FTP",
"RESUMECOMMAND_HTTP", "RESUMECOMMAND_HTTPS",
"RESUMECOMMAND_RSYNC", "RESUMECOMMAND_SFTP",
reply other threads:[~2011-10-14 16:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=af2c4446880020871f7aaa0f3ff4f75707dd027e.zmedico@gentoo \
--to=zmedico@gentoo.org \
--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