diff --git a/pisi/archive.py b/pisi/archive.py index 329f0933..6e7ddd12 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -48,7 +48,7 @@ class ArchiveBase(object): class ArchiveBinary(ArchiveBase): """ArchiveBinary handles binary archive files (usually distrubuted as .bin files)""" - def __init__(self, file_path, arch_type = "tar"): + def __init__(self, file_path, arch_type = "binary"): super(ArchiveBinary, self).__init__(file_path, arch_type) def unpack(self, target_dir, clean_dir = False): @@ -57,7 +57,7 @@ class ArchiveBinary(ArchiveBase): # we can't unpack .bin files. we'll just move them to target # directory and leave the dirty job to actions.py ;) import shutil - target_file = os.path.join(target_dir, self.file_path) + target_file = os.path.join(target_dir, os.path.basename(self.file_path)) shutil.copyfile(self.file_path, target_file)