MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / action_update

Function action_update

Scripts/Developer Base/Mobile Desktop.py:1910–1924  ·  view source on GitHub ↗
(cfg: Dict)

Source from the content-addressed store, hash-verified

1908 pause(cfg)
1909
1910def action_update(cfg: Dict) -> None:
1911 installed = get_installed_distros()
1912 print("\n" + tr(cfg, "installed"))
1913 if not installed:
1914 print(" " + tr(cfg, "none_installed"))
1915 pause(cfg)
1916 return
1917 distro = pick_from_list(tr(cfg, "pick_system"), installed)
1918 if not distro:
1919 print(tr(cfg, "invalid"))
1920 pause(cfg)
1921 return
1922 ensure_system_entry(cfg, distro)
1923 update_distro_and_programs(cfg, distro)
1924 pause(cfg)
1925
1926
1927def action_extras_menu(cfg: Dict) -> None:

Callers 1

mainFunction · 0.70

Calls 7

printFunction · 0.85
get_installed_distrosFunction · 0.70
trFunction · 0.70
pauseFunction · 0.70
pick_from_listFunction · 0.70
ensure_system_entryFunction · 0.70

Tested by

no test coverage detected