Skip to content

Commit 9095f14

Browse files
committed
Remove installing from Lacros
1 parent 6770392 commit 9095f14

File tree

9 files changed

+7
-577
lines changed

9 files changed

+7
-577
lines changed

lib/inputstreamhelper/__init__.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
kodi_to_ascii, kodi_version, listdir, localize, log, notification, ok_dialog, progress_dialog, select_dialog,
1010
set_setting, set_setting_bool, textviewer, translate_path, yesno_dialog)
1111
from .utils import arch, download_path, http_download, parse_version, remove_tree, system_os, temp_path, unzip, userspace64
12-
from .widevine.arm import dl_extract_widevine_chromeos, extract_widevine_chromeos, install_widevine_arm
13-
from .widevine.arm_lacros import cdm_from_lacros
12+
from .widevine.arm import dl_extract_widevine_chromeos, extract_widevine_chromeos, install_widevine_arm_chromeos
1413
from .widevine.widevine import (backup_path, has_widevinecdm, ia_cdm_path,
1514
install_cdm_from_backup, latest_widevine_version,
1615
load_widevine_config, missing_widevine_libs, widevine_config_path,
@@ -227,7 +226,7 @@ def install_widevine(self, choose_version=False):
227226
else:
228227
if choose_version:
229228
log(1, "Choosing a version to install is only implemented if the lib is found in googles repo.")
230-
result = install_widevine_arm(backup_path())
229+
result = install_widevine_arm_chromeos(backup_path())
231230
if not result:
232231
return result
233232

@@ -296,7 +295,7 @@ def _first_run():
296295

297296
@staticmethod
298297
def get_current_wv():
299-
"""Returns which component is used (widevine/chromeos/lacros) and the current version"""
298+
"""Returns which component is used (widevine/chromeos) and the current version"""
300299
wv_config = load_widevine_config()
301300
component = 'Widevine CDM'
302301
current_version = '0'
@@ -305,12 +304,6 @@ def get_current_wv():
305304
log(3, 'Widevine config missing. Could not determine current version, forcing update.')
306305
elif cdm_from_repo():
307306
current_version = wv_config['version']
308-
elif cdm_from_lacros():
309-
component = 'Lacros image'
310-
try:
311-
current_version = wv_config['img_version'] # if lib was installed from chromeos image, there is no img_version
312-
except KeyError:
313-
pass
314307
else:
315308
component = 'Chrome OS'
316309
current_version = wv_config['version']
@@ -481,9 +474,7 @@ def info_dialog(self):
481474
text += localize(30821, version=self._get_lib_version(widevinecdm_path()), date=wv_updated) + '\n'
482475
if not cdm_from_repo():
483476
wv_cfg = load_widevine_config()
484-
if wv_cfg and cdm_from_lacros(): # Lacros image version
485-
text += localize(30825, image="Lacros", version=wv_cfg['img_version']) + '\n'
486-
elif wv_cfg: # Chrome OS version
477+
if wv_cfg: # Chrome OS version
487478
text += localize(30822, name=wv_cfg['hwidmatch'].split()[0].lstrip('^'), version=wv_cfg['version']) + '\n'
488479
if get_setting_float('last_check', 0.0):
489480
wv_check = strftime('%Y-%m-%d %H:%M', localtime(get_setting_float('last_check', 0.0)))

lib/inputstreamhelper/config.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@
111111

112112
CHROMEOS_BLOCK_SIZE = 512
113113

114-
LACROS_DOWNLOAD_URL = "https://gsdview.appspot.com/chromeos-localmirror/distfiles/chromeos-lacros-{arch}-squash-zstd-{version}"
115-
116-
LACROS_LATEST = "https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Lacros&num=1"
117-
118114
MINIMUM_INPUTSTREAM_VERSION_ARM64 = {
119115
'inputstream.adaptive': '20.3.5',
120116
}

0 commit comments

Comments
 (0)