@@ -25,36 +25,36 @@ def plugin(f, *args, **kwargs) -> None: # type: ignore[no-untyped-def]
2525
2626def _log_sys_info () -> None :
2727 # Log various information about hardware before starting the installation. This might assist in troubleshooting
28- debug (f" Hardware model detected: { SysInfo .sys_vendor ()} { SysInfo .product_name ()} ; UEFI mode: { SysInfo .has_uefi ()} " )
29- debug (f" Processor model detected: { SysInfo .cpu_model ()} " )
30- debug (f" Memory statistics: { SysInfo .mem_available ()} available out of { SysInfo .mem_total ()} total installed" )
31- debug (f" Virtualization detected: { SysInfo .virtualization ()} ; is VM: { SysInfo .is_vm ()} " )
32- debug (f" Graphics devices detected: { SysInfo ._graphics_devices ().keys ()} " )
28+ debug (f' Hardware model detected: { SysInfo .sys_vendor ()} { SysInfo .product_name ()} ; UEFI mode: { SysInfo .has_uefi ()} ' )
29+ debug (f' Processor model detected: { SysInfo .cpu_model ()} ' )
30+ debug (f' Memory statistics: { SysInfo .mem_available ()} available out of { SysInfo .mem_total ()} total installed' )
31+ debug (f' Virtualization detected: { SysInfo .virtualization ()} ; is VM: { SysInfo .is_vm ()} ' )
32+ debug (f' Graphics devices detected: { SysInfo ._graphics_devices ().keys ()} ' )
3333
3434 # For support reasons, we'll log the disk layout pre installation to match against post-installation layout
35- debug (f" Disk states before installing:\n { disk_layouts ()} " )
35+ debug (f' Disk states before installing:\n { disk_layouts ()} ' )
3636
3737
3838def _fetch_arch_db () -> None :
39- info (" Fetching Arch Linux package database..." )
39+ info (' Fetching Arch Linux package database...' )
4040 try :
41- Pacman .run (" -Sy" )
41+ Pacman .run (' -Sy' )
4242 except Exception as e :
43- debug (f" Failed to sync Arch Linux package database: { e } " )
43+ debug (f' Failed to sync Arch Linux package database: { e } ' )
4444 exit (1 )
4545
4646
4747def _check_new_version () -> None :
48- info (" Checking version..." )
48+ info (' Checking version...' )
4949 upgrade = None
5050
5151 try :
52- upgrade = Pacman .run (" -Qu archinstall" ).decode ()
52+ upgrade = Pacman .run (' -Qu archinstall' ).decode ()
5353 except Exception as e :
54- debug (f" Failed determine pacman version: { e } " )
54+ debug (f' Failed determine pacman version: { e } ' )
5555
5656 if upgrade :
57- text = f" New version available: { upgrade } "
57+ text = f' New version available: { upgrade } '
5858 info (text )
5959 time .sleep (3 )
6060
@@ -65,12 +65,12 @@ def main() -> int:
6565 OR straight as a module: python -m archinstall
6666 In any case we will be attempting to load the provided script to be run from the scripts/ folder
6767 """
68- if " --help" in sys .argv or "-h" in sys .argv :
68+ if ' --help' in sys .argv or '-h' in sys .argv :
6969 arch_config_handler .print_help ()
7070 return 0
7171
7272 if os .getuid () != 0 :
73- print (tr (" Archinstall requires root privileges to run. See --help for more." ))
73+ print (tr (' Archinstall requires root privileges to run. See --help for more.' ))
7474 return 1
7575
7676 _log_sys_info ()
@@ -83,7 +83,7 @@ def main() -> int:
8383
8484 script = arch_config_handler .args .script
8585
86- mod_name = f" archinstall.scripts.{ script } "
86+ mod_name = f' archinstall.scripts.{ script } '
8787 # by loading the module we'll automatically run the script
8888 importlib .import_module (mod_name )
8989
@@ -103,11 +103,11 @@ def run_as_a_module() -> None:
103103 Tui .shutdown ()
104104
105105 if exc :
106- err = "" .join (traceback .format_exception (exc ))
106+ err = '' .join (traceback .format_exception (exc ))
107107 error (err )
108108
109109 text = (
110- " Archinstall experienced the above error. If you think this is a bug, please report it to\n "
110+ ' Archinstall experienced the above error. If you think this is a bug, please report it to\n '
111111 'https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".\n \n '
112112 "Hint: To extract the log from a live ISO \n curl -F'file=@/var/log/archinstall/install.log' https://0x0.st\n "
113113 )
@@ -119,19 +119,19 @@ def run_as_a_module() -> None:
119119
120120
121121__all__ = [
122- " FormattedOutput" ,
123- " Language" ,
124- " Pacman" ,
125- " SysInfo" ,
126- " Tui" ,
127- " arch_config_handler" ,
128- " debug" ,
129- " disk_layouts" ,
130- " error" ,
131- " info" ,
132- " load_plugin" ,
133- " log" ,
134- " plugin" ,
135- " translation_handler" ,
136- " warn" ,
122+ ' FormattedOutput' ,
123+ ' Language' ,
124+ ' Pacman' ,
125+ ' SysInfo' ,
126+ ' Tui' ,
127+ ' arch_config_handler' ,
128+ ' debug' ,
129+ ' disk_layouts' ,
130+ ' error' ,
131+ ' info' ,
132+ ' load_plugin' ,
133+ ' log' ,
134+ ' plugin' ,
135+ ' translation_handler' ,
136+ ' warn' ,
137137]
0 commit comments