Skip to content

Commit 01040e2

Browse files
Logic fix in extraction function
1 parent e200f21 commit 01040e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/inputstreamhelper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,12 @@ def _extract_cdm_from_img(self):
378378
for filename in files:
379379
if 'widevinecdm' in filename and filename.endswith(config.CDM_EXTENSIONS):
380380
shutil.copyfile(os.path.join(root, filename), os.path.join(self._cdm_path(), filename))
381-
break
381+
busy_dialog.close()
382+
return True
382383

383384
busy_dialog.close()
384-
return True
385+
self._log('Failed to find Widevine CDM binary in Chrome OS image.')
386+
return False
385387

386388
def _install_cdm(self):
387389
"""Loop through local cdm folder and symlink/copy binaries to inputstream cdm_path."""

0 commit comments

Comments
 (0)