Skip to content

Commit

Permalink
bug fix on annotation script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkern authored and petrelharp committed Oct 17, 2023
1 parent b185585 commit 9fef7e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion maintenance/annotation_maint.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def make_tarfile(output_filename, source_dir, dest):
if os.path.exists(output_filename):
os.remove(output_filename)
with tarfile.open(output_filename, "w:gz") as tar:
tar.add(source_dir, arcname=dest)
tar.add(
source_dir,
arcname=dest,
filter=lambda x: None if x.name.endswith(".tar.gz") else x,
)
tar.close()


Expand Down

0 comments on commit 9fef7e7

Please sign in to comment.