From 98584e7059ddf4b8c1e7ed49c04349deddef3df8 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 24 Nov 2021 12:25:40 +0000 Subject: added actually installing and extracting of packages --- src/util.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util.py') diff --git a/src/util.py b/src/util.py index 5ca3310..50efa7b 100644 --- a/src/util.py +++ b/src/util.py @@ -4,10 +4,14 @@ import colors import time import os import hashlib +import tarfile DEFAULT_BAR_COLOR = colors.BLACK + colors.BG_CYAN DEFAULT_BAR_COLOR_RESET = colors.BG_BLACK + colors.CYAN +def extract_tar(package_path, destination): + tarfile.open(package_path).extractall(destination) + def add_path(*argv): a = argv[0] for b in argv[1:]: -- cgit v1.2.1