For bug #186960, try to create a directory for $ROOT if it doesn't exist.
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 07:51:26 +0000 (07:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 07:51:26 +0000 (07:51 -0000)
svn path=/main/trunk/; revision=7516

pym/portage/__init__.py

index 28830b6b4cfcd8cdaec09cfeabdd7533183d4817..c5f05e0fba7e0ea547636ae411e26969e9027ba3 100644 (file)
@@ -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(