This commit is contained in:
S.Çağlar Onur
2005-10-09 02:13:24 +00:00
parent 5de8062971
commit 9de9ad4da9
+2 -2
View File
@@ -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)