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

--HG--
extra : commitid : 2LM7PfRKjEO
extra : histedit_source : fc8e5e1b60adc577639e0bb4c3edf09127d92224
This commit is contained in:
Armen Zambrano Gasparnian 2015-10-06 09:51:34 -04:00
parent 63b7a19a57
commit 6fad91d10c

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