snapshot clean fix
authorDaniel Robbins <drobbins@gentoo.org>
Tue, 11 Nov 2003 06:56:54 +0000 (06:56 +0000)
committerDaniel Robbins <drobbins@gentoo.org>
Tue, 11 Nov 2003 06:56:54 +0000 (06:56 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@78 d1e1f19c-881f-0410-ab34-b69fee027534

modules/targets.py

index 08ab5cde7220cadfa396bba8b09a8a682b367d41..780ac06afd6578920fff1ce01ba64e27ea1ca6e0 100644 (file)
@@ -273,10 +273,9 @@ class snapshot_target(generic_target):
                self.cleanup()
 
        def cleanup(self):
-               mytmp=self.settings["tmp_path"]+"/"+self.settings["target_subpath"]
                print "Cleaning up temporary snapshot directory..."
                #Be a good citizen and clean up after ourselves
-               cmd("rm -rf "+mytmp,"Snapshot cleanup failure")
+               cmd("rm -rf "+self.settings["tmp_path"],"Snapshot cleanup failure")
                        
 class stage1_target(generic_stage_target):
        def __init__(self,spec,addlargs):