summaryrefslogtreecommitdiffstats
path: root/bin/quickpkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/quickpkg')
-rwxr-xr-xbin/quickpkg5
1 files changed, 5 insertions, 0 deletions
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