Bug #198492 - Make quickpkg create $PKGDIR if it doesn't
authorZac Medico <zmedico@gentoo.org>
Thu, 8 Nov 2007 22:03:32 +0000 (22:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 8 Nov 2007 22:03:32 +0000 (22:03 -0000)
already exist.

svn path=/main/trunk/; revision=8464

bin/quickpkg

index 2b204e9a6fcc5c22b8d760c904b9e95e1d3e4151..226b7bd8236620a733f8d3cb847807e2d5b3a34a 100755 (executable)
@@ -19,6 +19,10 @@ def quickpkg_main(options, args, eout):
        vartree = trees["vartree"]
        vardb = vartree.dbapi
        bintree = trees["bintree"]
+       try:
+               ensure_dirs(bintree.pkgdir)
+       except portage.exception.PortageException:
+               pass
        if not os.access(bintree.pkgdir, os.W_OK):
                eout.eerror("No write access to '%s'" % bintree.pkgdir)
                return errno.EACCES