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

Function _fetch_arch_db

archinstall/main.py:51–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def _fetch_arch_db() -> bool:
52 info('Fetching Arch Linux package database...')
53 try:
54 Pacman.run('-Sy')
55 except Exception as e:
56 error('Failed to sync Arch Linux package database.')
57 if 'could not resolve host' in str(e).lower():
58 error('Most likely due to a missing network connection or DNS issue.')
59
60 error('Run archinstall --debug and check /var/log/archinstall/install.log for details.')
61
62 debug(f'Failed to sync Arch Linux package database: {e}')
63 return False
64
65 return True
66
67
68def _list_scripts() -> str:

Callers 1

runFunction · 0.85

Calls 4

infoFunction · 0.90
errorFunction · 0.90
debugFunction · 0.90
runMethod · 0.45

Tested by

no test coverage detected