From: Zac Medico Date: Wed, 20 Jun 2007 23:54:11 +0000 (-0000) Subject: Add an --ignore-default-opts option that is analogous to the corresponding emerge... X-Git-Tag: v2.1.3~201 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=61bf1aa26dbfbaefc55afed391110831185766c2;p=portage.git Add an --ignore-default-opts option that is analogous to the corresponding emerge option. (trunk r6892) svn path=/main/branches/2.1.2/; revision=6893 --- diff --git a/bin/quickpkg b/bin/quickpkg index 224f236b2..1b8cd9bff 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -176,9 +176,14 @@ if __name__ == "__main__": parser.add_option("--umask", default="0077", help="umask used during package creation (default is 0077)") - from portage import settings - default_opts = settings.get("QUICKPKG_DEFAULT_OPTS","").split() - options, args = parser.parse_args(default_opts + sys.argv[1:]) + parser.add_option("--ignore-default-opts", + action="store_true", + help="do not use the QUICKPKG_DEFAULT_OPTS environment variable") + options, args = parser.parse_args(sys.argv[1:]) + if not options.ignore_default_opts: + from portage import settings + default_opts = settings.get("QUICKPKG_DEFAULT_OPTS","").split() + options, args = parser.parse_args(default_opts + sys.argv[1:]) if not args: parser.error("no packages atoms given") try: