Fix
This commit is contained in:
+2
-2
@@ -48,7 +48,7 @@ class ArchiveBase(object):
|
|||||||
class ArchiveBinary(ArchiveBase):
|
class ArchiveBinary(ArchiveBase):
|
||||||
"""ArchiveBinary handles binary archive files (usually distrubuted as
|
"""ArchiveBinary handles binary archive files (usually distrubuted as
|
||||||
.bin files)"""
|
.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)
|
super(ArchiveBinary, self).__init__(file_path, arch_type)
|
||||||
|
|
||||||
def unpack(self, target_dir, clean_dir = False):
|
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
|
# we can't unpack .bin files. we'll just move them to target
|
||||||
# directory and leave the dirty job to actions.py ;)
|
# directory and leave the dirty job to actions.py ;)
|
||||||
import shutil
|
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)
|
shutil.copyfile(self.file_path, target_file)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user