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

bin/quickpkg

index 7abcec6da4bca2d51daa697594a7a92122f69114..f2f183579ff3118deb91c6d66edaf38e217ec1ba 100755 (executable)
@@ -124,9 +124,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: