mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
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:
parent
63b7a19a57
commit
6fad91d10c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user