mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1211885 - Do not try to test if a .dmg file is_tarfile(). r=ahal
This commit is contained in:
parent
faf1f8cd76
commit
45ff01ddca
@ -110,12 +110,12 @@ def install(src, dest):
|
|||||||
trbk = None
|
trbk = None
|
||||||
try:
|
try:
|
||||||
install_dir = None
|
install_dir = None
|
||||||
if zipfile.is_zipfile(src) or tarfile.is_tarfile(src):
|
if src.lower().endswith('.dmg'):
|
||||||
install_dir = mozfile.extract(src, dest)[0]
|
|
||||||
elif src.lower().endswith('.dmg'):
|
|
||||||
install_dir = _install_dmg(src, dest)
|
install_dir = _install_dmg(src, dest)
|
||||||
elif src.lower().endswith('.exe'):
|
elif src.lower().endswith('.exe'):
|
||||||
install_dir = _install_exe(src, dest)
|
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
|
return install_dir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user