Commit 946cf41a authored by onny's avatar onny
Browse files

avoid extracting all files from package databases

parent 65077a0b
......@@ -73,9 +73,7 @@ class Database:
conn.close()
def parse_database(self, database):
os.chdir(self.temp_directory)
tar = tarfile.open(database, "r:tar")
tar.extractall()
pkglist = []
for entry in tar.getmembers():
if entry.isfile() and "desc" in entry.name:
......
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