specify opening for writing
authorAndrew Gaffney <agaffney@gentoo.org>
Sun, 29 Nov 2009 02:54:30 +0000 (20:54 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sun, 29 Nov 2009 02:54:30 +0000 (20:54 -0600)
modules/catalyst/target/generic_stage.py

index 2c88ad5a954c6fa98edc8440901ab9d8611840e3..e45b11903fe96c52ae3de9822bc044ec395595fb 100644 (file)
@@ -562,7 +562,7 @@ class generic_stage_target(generic_target):
                        catalyst.util.unpack_tarball(self.settings["snapshot_path"], self.settings["chroot_path"] + "/usr/portage")
 
                self.set_autoresume("unpack_portage", self.settings["snapshot_path"])
-               myf = open(self.settings["snapshot_cache_path"] + "catalyst-hash")
+               myf = open(self.settings["snapshot_cache_path"] + "catalyst-hash", 'w')
                myf.write(self.settings["snapshot_path_hash"])
                myf.close()