Remove MANIFEST.json before building

For reasons surpassing understanding this doesn't seem to get
overwritten.

Change-Id: Ib4d6b38757112908dbf58d70015482831a8c2e95
This commit is contained in:
Monty Taylor 2020-03-13 10:14:58 -05:00
parent a451edcb5c
commit 852f385889

View File

@ -17,6 +17,7 @@ import pbr.version
from ruamel.yaml import YAML
import os
import shutil
@ -39,6 +40,8 @@ def generate_version_info():
def main():
generate_version_info()
shutil.rmtree('build_artifact', ignore_errors=True)
if os.path.exists('MANIFEST.json'):
os.unlink('MANIFEST.json')
if __name__ == '__main__':