comparison bitten/slave.py @ 43:8184c7ad896c

Fix typo in build slave.
author cmlenz
date Thu, 23 Jun 2005 20:38:48 +0000
parents efa525876b1e
children 083e848088ee
comparison
equal deleted inserted replaced
42:efa525876b1e 43:8184c7ad896c
62 xmlio.Element('os', family=os.name, version=release)[sysname] 62 xmlio.Element('os', family=os.name, version=release)[sysname]
63 ] 63 ]
64 self.channel.send_msg(beep.MIMEMessage(xml), handle_reply) 64 self.channel.send_msg(beep.MIMEMessage(xml), handle_reply)
65 65
66 def handle_msg(self, msgno, msg): 66 def handle_msg(self, msgno, msg):
67 if msg.get_content_type() == in ('application/tar', 'application/zip'): 67 if msg.get_content_type() == 'application/tar':
68 logging.info('Received snapshot') 68 logging.info('Received snapshot')
69 workdir = tempfile.mkdtemp(prefix='bitten') 69 workdir = tempfile.mkdtemp(prefix='bitten')
70 archive_name = msg.get('Content-Disposition', 'snapshot.tar.gz') 70 archive_name = msg.get('Content-Disposition', 'snapshot.tar.gz')
71 archive_path = os.path.join(workdir, archive_name) 71 archive_path = os.path.join(workdir, archive_name)
72 file(archive_path, 'wb').write(msg.get_payload()) 72 file(archive_path, 'wb').write(msg.get_payload())
Copyright (C) 2012-2017 Edgewall Software