Current stage3 files already provide /etc/portage, so don't fail if it already exists.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Wed, 18 Apr 2012 22:34:22 +0000 (22:34 +0000)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Wed, 18 Apr 2012 22:34:22 +0000 (22:34 +0000)
modules/generic_stage_target.py

index 56b91bd1cc1fc665f6d439b441d4da24751e0cb6..26e16d0e2bf12756b3e48ff5f4fac2b0baf9c36a 100644 (file)
@@ -815,7 +815,7 @@ class generic_stage_target(generic_target):
                        print "Configuring profile link..."
                        cmd("rm -f "+self.settings["chroot_path"]+"/etc/portage/make.profile",\
                                        "Error zapping profile link",env=self.env)
-                       cmd("mkdir "+self.settings["chroot_path"]+"/etc/portage/")
+                       cmd("mkdir -p "+self.settings["chroot_path"]+"/etc/portage/")
                        cmd("ln -sf ../../usr/portage/profiles/"+\
                                self.settings["target_profile"]+" "+\
                                self.settings["chroot_path"]+"/etc/portage/make.profile",\