From e6f50b99b6d87808562a9ee4089c215f4e5bb84f Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 28 Nov 2009 20:54:30 -0600 Subject: [PATCH] specify opening for writing --- modules/catalyst/target/generic_stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/catalyst/target/generic_stage.py b/modules/catalyst/target/generic_stage.py index 2c88ad5a..e45b1190 100644 --- a/modules/catalyst/target/generic_stage.py +++ b/modules/catalyst/target/generic_stage.py @@ -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() -- 2.26.2