diff options
author | davidovski <git@davidovski.xyz> | 2021-11-24 12:25:40 +0000 |
---|---|---|
committer | davidovski <git@davidovski.xyz> | 2021-11-24 12:25:40 +0000 |
commit | 98584e7059ddf4b8c1e7ed49c04349deddef3df8 (patch) | |
tree | d81af2255c736fcf2ca2c34080ff8febe8c9682f /src/util.py | |
parent | d9b75be035b6cd81082f07c7c71798df22b3f0e2 (diff) |
added actually installing and extracting of packages
Diffstat (limited to 'src/util.py')
-rw-r--r-- | src/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
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:]: |