mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Remove MANIFEST.json before building
For reasons surpassing understanding this doesn't seem to get overwritten. Change-Id: Ib4d6b38757112908dbf58d70015482831a8c2e95
This commit is contained in:
@@ -17,6 +17,7 @@ import pbr.version
|
|||||||
|
|
||||||
from ruamel.yaml import YAML
|
from ruamel.yaml import YAML
|
||||||
|
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
|
||||||
@@ -39,6 +40,8 @@ def generate_version_info():
|
|||||||
def main():
|
def main():
|
||||||
generate_version_info()
|
generate_version_info()
|
||||||
shutil.rmtree('build_artifact', ignore_errors=True)
|
shutil.rmtree('build_artifact', ignore_errors=True)
|
||||||
|
if os.path.exists('MANIFEST.json'):
|
||||||
|
os.unlink('MANIFEST.json')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user