Update the result archive structure
This commit is contained in:
parent
63bd68cc2a
commit
ac04b4e1b7
@ -79,8 +79,9 @@ class Archiver(object):
|
||||
"Manifest for {0} service has no file definitions for "
|
||||
"{1}").format(manifest.service_display_name, data_type)
|
||||
|
||||
with tarfile.open("sample.tar", "w") as tar:
|
||||
tar.add(temp_dir)
|
||||
with tarfile.open("service_metadata.tar", "w") as tar:
|
||||
for item in os.listdir(temp_dir):
|
||||
tar.add(os.path.join(temp_dir, item), item)
|
||||
try:
|
||||
shutil.rmtree(temp_dir, ignore_errors=True)
|
||||
except Exception as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user