summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-30 07:51:26 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-30 07:51:26 +0000
commitae7c864fbbc463f871af671bc80354d4c0d2ed02 (patch)
tree30b4e144f6631d40a802b56a1cfda421298beabe
parent790ac83ac74d1d46f3adfa5dbd1809bfac00f98f (diff)
downloadportage-ae7c864fbbc463f871af671bc80354d4c0d2ed02.tar.gz
portage-ae7c864fbbc463f871af671bc80354d4c0d2ed02.tar.bz2
portage-ae7c864fbbc463f871af671bc80354d4c0d2ed02.zip
For bug #186960, try to create a directory for $ROOT if it doesn't exist.
svn path=/main/trunk/; revision=7516
-rw-r--r--pym/portage/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 28830b6b4..c5f05e0fb 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1210,6 +1210,7 @@ class config(object):
target_root = normalize_path(os.path.abspath(
target_root)).rstrip(os.path.sep) + os.path.sep
+ portage.util.ensure_dirs(target_root)
check_var_directory("ROOT", target_root)
env_d = getconfig(