summaryrefslogtreecommitdiff
path: root/src/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.py')
-rw-r--r--src/util.py4
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:]: