From 1b92bc623d440427c591b5618f46c06d44f9b668 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 20 Nov 2007 19:36:37 +0000 Subject: [PATCH] Bug #198492 - Make quickpkg create $PKGDIR if it doesn't already exist. (trunk r8464) svn path=/main/branches/2.1.2/; revision=8546 --- bin/quickpkg | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.26.2