build: make --dry-run all work

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 43618523cd
commit 4db08517dc
5 changed files with 15 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ from shell_helpers import LF
def main():
os.makedirs(self.env['release_dir'], exist_ok=True)
if os.path.exists(self.env['release_zip_file']):
os.unlink(self.env['release_zip_file'])
self.sh.rmrf(self.env['release_zip_file'])
zipf = zipfile.ZipFile(self.env['release_zip_file'], 'w', zipfile.ZIP_DEFLATED)
for arch in self.env['all_long_archs']:
self.setup(common.get_argparse(default_args={'arch': arch}))