Commit 65077a0b authored by onny's avatar onny
Browse files

extract database dump

parent 828c4aa1
......@@ -61,4 +61,13 @@ class Download:
bar.update(total_length)
f.close()
with lzma.open("/tmp/arch-upstream/anitya.dump.xz") as f:
file_content = f.read()
with open("/tmp/arch-upstream/anitya.dump", "wb") as extracted_file:
extracted_file.write(file_content)
f.close()
extracted_file.close()
print("")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment