From: Zac Medico Date: Tue, 20 Nov 2007 19:36:37 +0000 (-0000) Subject: Bug #198492 - Make quickpkg create $PKGDIR if it doesn't X-Git-Tag: v2.1.4~277 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b92bc623d440427c591b5618f46c06d44f9b668;p=portage.git Bug #198492 - Make quickpkg create $PKGDIR if it doesn't already exist. (trunk r8464) svn path=/main/branches/2.1.2/; revision=8546 --- diff --git a/bin/quickpkg b/bin/quickpkg index fe7f4dbcc..fedb1b3fe 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -70,6 +70,7 @@ def quickpkg_main(options, args, eout): from portage_dep import use_reduce, paren_reduce from portage_util import ConfigProtect, ensure_dirs from portage_exception import InvalidData, InvalidDependString + import portage_exception from portage_checksum import perform_md5 import tarfile import portage @@ -78,6 +79,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