commit:     a0bcc3bda4f7528f91d610de712b29e83eaf3ec0
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 15 16:51:43 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Dec 15 17:08:38 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=a0bcc3bd

targets/livecd_stage1.py: Remove the duplicated set_target_path()

 catalyst/targets/livecd_stage1.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/catalyst/targets/livecd_stage1.py 
b/catalyst/targets/livecd_stage1.py
index 70f9243..aa234b2 100644
--- a/catalyst/targets/livecd_stage1.py
+++ b/catalyst/targets/livecd_stage1.py
@@ -29,19 +29,6 @@ class livecd_stage1(StageBase):
                                        
"bind","chroot_setup","setup_environment","build_packages",\
                                        "unbind", "clean","clear_autoresume"]
 
-       def set_target_path(self):
-               
self.settings["target_path"]=normpath(self.settings["storedir"]+"/builds/"+self.settings["target_subpath"])
-               if "autoresume" in self.settings["options"] \
-                       and self.resume.is_enabled("setup_target_path"):
-                       log.notice('Resume point detected, skipping target path 
setup operation...')
-               else:
-                       # first clean up any existing target stuff
-                       if os.path.exists(self.settings["target_path"]):
-                               cmd("rm -rf "+self.settings["target_path"],\
-                                       "Could not remove existing directory: 
"+self.settings["target_path"],env=self.env)
-                               self.resume.enable("setup_target_path")
-                       ensure_dirs(self.settings["target_path"])
-
        def set_spec_prefix(self):
                self.settings["spec_prefix"]="livecd"
 

Reply via email to