def on_submit(self, datas): for key, value in datas.items(): self.deb[key] = str(value) self.deb['k_arch'] = self.get_k_arch() os.mkdir('debian') os.mkdir('debian/source') self.debianize() with open('debian/source/format', 'w') as f: mako = os.path.join(self.tmpl_dir, 'format.mako') f.write(template(mako, self.deb)) copyfile(self.copyright_fname, 'debian/copyright') with open('debian/compat', 'w') as f: f.write('9') TUI.quit()
def abort(self): emit_signal(self, TUISignal.QUIT) TUI.quit()