From c7e11b8daeb1605c368dcd86cac1fadb94776cab Mon Sep 17 00:00:00 2001
From: Carl Philipp Klemm <philipp@uvos.xyz>
Date: Mon, 15 Jul 2024 16:09:18 +0200
Subject: [PATCH] scripts: createdataset: close tar file on completion to avoid
 createing tar files with missing null record

---
 scripts/createdataset.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/createdataset.py b/scripts/createdataset.py
index 6315b97..dd7cfd9 100644
--- a/scripts/createdataset.py
+++ b/scripts/createdataset.py
@@ -53,4 +53,5 @@ if __name__ == "__main__":
 		tar.add(path, arcname=os.path.split(path)[-1])
 		os.remove(path)
 	os.rmdir(args.out)
+	tar.close()
 
-- 
GitLab