fixed merge conflicts

This commit is contained in:
advaithm 2021-04-22 17:03:24 +05:30
parent eb1ff72f5b
commit e63eb26388
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
2 changed files with 0 additions and 28 deletions

View File

@ -7,11 +7,7 @@ from .output import log, LOG_LEVELS
from .storage import storage from .storage import storage
from .networking import list_interfaces from .networking import list_interfaces
from .general import sys_command from .general import sys_command
<<<<<<< HEAD
from .hardware import AVAILABLE_GFX_DRIVERS, hasUEFI
=======
from .hardware import AVAILABLE_GFX_DRIVERS from .hardware import AVAILABLE_GFX_DRIVERS
>>>>>>> 1292c07... Fixed PR #273. Moved the graphic drivers into hardware since they are hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.
## TODO: Some inconsistencies between the selection processes. ## TODO: Some inconsistencies between the selection processes.
## Some return the keys from the options, some the values? ## Some return the keys from the options, some the values?
@ -469,9 +465,6 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
(The template xorg is for beginner users, not advanced, and should (The template xorg is for beginner users, not advanced, and should
there for appeal to the general public first and edge cases later) there for appeal to the general public first and edge cases later)
""" """
<<<<<<< HEAD
if len(options) >= 1:
=======
drivers = sorted(list(options)) drivers = sorted(list(options))
if len(drivers) >= 1: if len(drivers) >= 1:
@ -481,7 +474,6 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
print(' -- The above list are supported graphic card drivers. --') print(' -- The above list are supported graphic card drivers. --')
print(' -- You need to select (and read about) which one you need. --') print(' -- You need to select (and read about) which one you need. --')
>>>>>>> 1292c07... Fixed PR #273. Moved the graphic drivers into hardware since they are hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.
lspci = sys_command(f'/usr/bin/lspci') lspci = sys_command(f'/usr/bin/lspci')
for line in lspci.trace_log.split(b'\r\n'): for line in lspci.trace_log.split(b'\r\n'):
if b' vga ' in line.lower(): if b' vga ' in line.lower():
@ -490,18 +482,6 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
elif b'amd' in line.lower(): elif b'amd' in line.lower():
print(' ** AMD card detected, suggested driver: AMD / ATI **') print(' ** AMD card detected, suggested driver: AMD / ATI **')
<<<<<<< HEAD
selected_driver = generic_select(options, input_text="Select your graphics card driver: ", sort=True)
initial_option = selected_driver
if type(options[initial_option]) == dict:
driver_options = sorted(options[initial_option].keys())
selected_driver_package_group = generic_select(driver_options, input_text=f"Which driver-type do you want for {initial_option}: ")
if selected_driver_package_group in options[initial_option].keys():
print(options[initial_option][selected_driver_package_group])
selected_driver = options[initial_option][selected_driver_package_group]
=======
selected_driver = input('Select your graphics card driver: ') selected_driver = input('Select your graphics card driver: ')
initial_option = selected_driver initial_option = selected_driver
@ -533,7 +513,6 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
selected_driver_package_group = selected_driver[selected_driver.index(selected_driver_package_group)] selected_driver_package_group = selected_driver[selected_driver.index(selected_driver_package_group)]
elif len(selected_driver_package_group) == 0: elif len(selected_driver_package_group) == 0:
raise RequirementError(f"At least one driver package is required for a graphical environment using {selected_driver}. Please restart the installer and try again.") raise RequirementError(f"At least one driver package is required for a graphical environment using {selected_driver}. Please restart the installer and try again.")
>>>>>>> 1292c07... Fixed PR #273. Moved the graphic drivers into hardware since they are hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.
else: else:
raise RequirementError(f"Selected driver-type does not exist for {initial_option}.") raise RequirementError(f"Selected driver-type does not exist for {initial_option}.")
@ -541,8 +520,4 @@ def select_driver(options=AVAILABLE_GFX_DRIVERS):
return selected_driver return selected_driver
<<<<<<< HEAD
raise RequirementError("Selecting drivers require a least one profile to be given as an option.") raise RequirementError("Selecting drivers require a least one profile to be given as an option.")
=======
raise RequirementError("Selecting drivers require a least one profile to be given as an option.")
>>>>>>> 1292c07... Fixed PR #273. Moved the graphic drivers into hardware since they are hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.

View File

@ -11,12 +11,9 @@ def _prep_function(*args, **kwargs):
other code in this stage. So it's a safe way to ask the user other code in this stage. So it's a safe way to ask the user
for more input before any other installer steps start. for more input before any other installer steps start.
""" """
<<<<<<< HEAD
=======
__builtins__['_gfx_driver_packages'] = archinstall.select_driver() __builtins__['_gfx_driver_packages'] = archinstall.select_driver()
>>>>>>> 1292c07... Fixed PR #273. Moved the graphic drivers into hardware since they are hardware specific, in the long run maybe we move them into 'drivers' or something. And moved the user interaction from gfx_drivers into user_interactions. And removed the import from installer.py to __init__.py since we don't want to import 'global functions' in extension imports.
return True return True
# Ensures that this code only gets executed if executed # Ensures that this code only gets executed if executed