Add an --ignore-default-opts option that is analogous to the corresponding emerge...
authorZac Medico <zmedico@gentoo.org>
Wed, 20 Jun 2007 23:54:11 +0000 (23:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 20 Jun 2007 23:54:11 +0000 (23:54 -0000)
svn path=/main/branches/2.1.2/; revision=6893

bin/quickpkg

index 224f236b2baf97efb626e32333384a662e8ca55e..1b8cd9bff7bd3df9a78d1736a250e434a124d446 100755 (executable)
@@ -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: