+2008-05-12 Joerg Jaspert <joerg@debian.org>
+
+ * dak/transitions.py: use yaml.dump instead of syck.dump, as syck
+ seems to have a bug in its dump(), causing it to write illegal entries
+
2008-05-10 Stephen Gran <sgran@debian.org>
- * tools/debianqueued-0.9/debianqueued: First pass at a send_mail
+ * tools/debianqueued-0.9/debianqueued: First pass at a send_mail
implementation that sucks less
* Update debian/control to reflect new perl dependency
from daklib import utils
from daklib.dak_exceptions import TransitionsError
import syck
+import yaml
# Globals
Cnf = None
temp_lock = lock_file(trans_temp)
destfile = file(trans_temp, 'w')
- syck.dump(from_trans, destfile)
+ yaml.dump(from_trans, destfile, default_flow_style=False)
destfile.close()
os.rename(trans_temp, trans_file)
(fd, path) = tempfile.mkstemp("", "transitions", Cnf["Transitions::TempPath"])
os.chmod(path, 0644)
f = open(path, "w")
- syck.dump(transitions, f)
+ yaml.dump(transitions, f, default_flow_style=False)
return path
################################################################################