public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:master commit in: man/, pym/portage/package/ebuild/_config/, bin/
@ 2011-10-14 16:30 Zac Medico
  0 siblings, 0 replies; only message in thread
From: Zac Medico @ 2011-10-14 16:30 UTC (permalink / raw
  To: gentoo-commits

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",



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-14 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 16:30 [gentoo-commits] proj/portage:master commit in: man/, pym/portage/package/ebuild/_config/, bin/ Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox