Bug 1211885 - Do not try to test if a .dmg file is_tarfile(). r=ahal

This commit is contained in:
Armen Zambrano Gasparnian 2015-10-06 09:51:34 -04:00
parent faf1f8cd76
commit 45ff01ddca

View File

@ -110,12 +110,12 @@ def install(src, dest):
trbk = None
try:
install_dir = None
if zipfile.is_zipfile(src) or tarfile.is_tarfile(src):
install_dir = mozfile.extract(src, dest)[0]
elif src.lower().endswith('.dmg'):
if src.lower().endswith('.dmg'):
install_dir = _install_dmg(src, dest)
elif src.lower().endswith('.exe'):
install_dir = _install_exe(src, dest)
elif zipfile.is_zipfile(src) or tarfile.is_tarfile(src):
install_dir = mozfile.extract(src, dest)[0]
return install_dir