MCPcopy Index your code
hub / github.com/archlinux/archinstall / update_keyring

Function update_keyring

archinstall/lib/networking.py:92–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def update_keyring() -> bool:
93 info('Updating archlinux-keyring ...')
94 try:
95 Pacman.run('-Sy --noconfirm archlinux-keyring')
96 return True
97 except SysCallError:
98 if os.geteuid() != 0:
99 error("update_keyring() uses 'pacman -Sy archlinux-keyring' which requires root.")
100
101 return False
102
103
104def enrich_iface_types(interfaces: list[str]) -> dict[str, str]:

Callers

nothing calls this directly

Calls 3

infoFunction · 0.90
errorFunction · 0.90
runMethod · 0.45

Tested by

no test coverage detected