summaryrefslogtreecommitdiffstats
path: root/sources.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources.py')
-rw-r--r--sources.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources.py b/sources.py
index a7f1eb0..a799e09 100644
--- a/sources.py
+++ b/sources.py
@@ -39,14 +39,14 @@ def checksum(path, sum_type, sum_expected):
class FileSource:
- def __init__(self, url, insecure):
+ def __init__(self, url, username, password, insecure):
self.path = url.path
- def unpack(dest):
+ def unpack(self, dest):
# We assume tar is intelligent enough to find out
# the compression type to use and to strip leading '/',
# not sure if this is safe enough
- subprocess.check_call(["tar", "-C", dest, "xf", self.path])
+ subprocess.check_call(["tar", "xf", self.path, "-C", dest])
class DockerSource:
def __init__(self, url, username, password, insecure):