Update "port database" to correctly create the file structure authored by Yannick DAYER's avatar Yannick DAYER
......@@ -94,7 +94,7 @@ def convert_database(database, output, protocols, groups, **kwargs):
# create the final tarball
path = f"{output}.tar.gz"
with tarfile.open(path, "w:gz") as tar:
tar.add(output, arcname=".")
tar.add(output, arcname=database.name)
click.echo(f"Created {path}")
......@@ -215,7 +215,7 @@ def convert_replaymobile_to_csv():
# Create the final tarball
path = f"bio-face-replaymobile-img.tar.gz"
with tarfile.open(path, "w:gz") as tar:
tar.add("replaymobile-img", arcname=".")
tar.add("replaymobile-img", arcname=database.name)
print(f"Created '{path}'.")
......
......