From c90bfb5fbbd9d8178de6875a3adf7cfef692a487 Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Sat, 10 Nov 2018 20:48:00 +0000 Subject: [PATCH] Added support for xz compressed archives. --- create-db | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-db b/create-db index fbc7c57..465a45f 100755 --- a/create-db +++ b/create-db @@ -89,7 +89,7 @@ def process_id(from_date, until_date, delayed, path): def find(archive, pattern): for root, _, files in os.walk(os.path.join(archive, "data")): for file in files: - if fnmatch.fnmatch(file, pattern + ".tar"): + if fnmatch.fnmatch(file, pattern + ".tar") or fnmatch.fnmatch(file, pattern + ".[0-9][0-9][0-9].tar.xz"): yield os.path.join(root, file)