From 9de9ad4da9d218a2b91dbb2ad0cea2fa92df27a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Sun, 9 Oct 2005 02:13:24 +0000 Subject: [PATCH] Fix --- pisi/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)