From: Brian Dolbec Date: Wed, 12 Jun 2013 14:40:12 +0000 (-0700) Subject: Fix livecd source and target paths not ending with a slash X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bfb14f35298aea0718588c16e5b42f0e5782bdc8;p=catalyst.git Fix livecd source and target paths not ending with a slash --- diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 160c3a1b..09ebdb02 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -285,7 +285,7 @@ class StageBase(TargetBase, ClearBase, GenBase): def set_target_subpath(self): self.settings["target_subpath"]=self.settings["rel_type"]+"/"+\ self.settings["target"]+"-"+self.settings["subarch"]+"-"+\ - self.settings["version_stamp"] + self.settings["version_stamp"] +'/' def set_source_subpath(self): if type(self.settings["source_subpath"])!=types.StringType: diff --git a/catalyst/targets/livecd_stage1.py b/catalyst/targets/livecd_stage1.py index 55859bc8..8402e7aa 100644 --- a/catalyst/targets/livecd_stage1.py +++ b/catalyst/targets/livecd_stage1.py @@ -33,7 +33,7 @@ class livecd_stage1(StageBase): "unbind", "clean","clear_autoresume"] def set_target_path(self): - self.settings["target_path"]=normpath(self.settings["storedir"]+"/builds/"+self.settings["target_subpath"]) + 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"): print "Resume point detected, skipping target path setup operation..." @@ -43,7 +43,6 @@ class livecd_stage1(StageBase): 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): diff --git a/catalyst/targets/livecd_stage2.py b/catalyst/targets/livecd_stage2.py index 82c69b03..e8bee7d4 100644 --- a/catalyst/targets/livecd_stage2.py +++ b/catalyst/targets/livecd_stage2.py @@ -44,7 +44,7 @@ class livecd_stage2(StageBase): self.settings["hash_map"].generate_hash( self.settings["source_path"]) else: - self.settings["source_path"]=normpath(self.settings["storedir"]+"/tmp/"+self.settings["source_subpath"]) + self.settings["source_path"]=normpath(self.settings["storedir"]+"/tmp/"+self.settings["source_subpath"]+'/') if not os.path.exists(self.settings["source_path"]): raise CatalystError("Source Path: " + self.settings["source_path"] + " does not exist.",