From 0208ee3a87ea3bc2be408420b1efa8c223885cb4 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Fri, 14 Apr 2017 16:17:17 +0200 Subject: File source fixes --- sources.py | 6 +++--- 1 file 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): -- cgit