Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction.py
AgeCommit message (Collapse)Author
2021-04-17Initial rework of generic_select functionSecondThundeR
Here are list of changes: - Removed `sort` parameter, since every function has a sorted list in most cases - Added two new parameters to disable local output of options items and allow empty input from the user by returning None - Added a while loop, where it returns each time a RequirementError is raised - Added log info for each input error to help figure out what the problem is - Changed the check of the stripped input length to compare with 0, since the length cannot be less than 0 - Changed `isdigit` to `isnumeric`, which returns False if given digit is negative - Slightly changed a check for an out of range error - Removed displaying the list of available options when input is incorrect, in order to prevent the screen from overflowing - Added log info if options list is empty - Added log info if options are not dictionary or list - Added dictionary values conversion to accept only list and dictionaries as option - Added sorting dictionary values by default
2021-04-17Removed merge artifact.Anton Hvornum
2021-04-17Fix selecting language layout by nameВладислав
2021-04-17Merging in master to feature branch.Anton Hvornum
2021-04-15Spelling errorAnton Hvornum
2021-04-14Increased margin to facilitate error outputAnton Hvornum
2021-04-14Added a default keyboard layoutAnton Hvornum
This is just in case either the search step or the selector inputs nothing. Something has to be set, and the default is US.
2021-04-14Modified return value back to {}Anton Hvornum
2021-04-14Reverted back to raiseAnton Hvornum
2021-04-14Converted back to a raise exception.Anton Hvornum
Since we simply forgot to actually call `raise` here (my bad) I think that will be better, and we handle it where we need to.
2021-04-14typoadvaithm
2021-04-14return {} not Noneadvaithm
2021-04-14git automerge removed some important stuffadvaithm
2021-04-14fixed issues raised in a reviewadvaithm
2021-04-13Fixing a logic issue with ask_to_configure_network(). It no longer returns ↵Anton Hvornum
None if skipped, it returns a dict so that we can do sub-level logic checks in guided.
2021-04-13Added option to not touch mirror-list. Example if archlinux.org times out, ↵Anton Hvornum
use the existing mirror-list without trying to overwrite it.
2021-04-12Default timezone to UTC (very useful for servers)Dylan M. Taylor
Update user_interaction.py
2021-04-11Use generic_select for GPU driverDylan Taylor
Make it so there isn't a space in the key Try to simplify things more
2021-04-12Merge branch 'master' into torxed-v2.2.0Anton Hvornum
2021-04-11Fixed PR #273. Moved the graphic drivers into hardware since they are ↵Anton Hvornum
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.
2021-04-10Pulled in master to avoid merge conflicts.Anton Hvornum
2021-04-09fixed some typos and changed up how we detect if we have to enable/install ↵advaithm
network manager
2021-04-09moved around the if blockadvaithm
2021-04-09fixed typoadvaithm
2021-04-09networkmanager supportadvaithm
2021-04-09Assume yes is the user's intention if empty response for pipewire promptDylan Taylor
2021-04-09Change phrasing to indicate pulseaudio as defaultAnton Hvornum
2021-04-09Move choice into guided installation instead of DEsDylan M. Taylor
Arch wiki says packages should enable the user services automatically
2021-04-09Moved the 'use /mnt' logic to during disk selection.Anton Hvornum
2021-04-09Added a 'use /mnt' option to the formatted #124. This has not yet been ↵Anton Hvornum
tested, but the logic should work according to the new API layout for Installation().
2021-04-09Merge pull request #250 from insanemal/insanemal-patch-2Anton Hvornum
OOB in generic_selection
2021-04-09Off by one in generic_selection out of bounds checkInsanemal
Out of bounds check in generic_selection is using >= on list. Lists are zero based. If you put in a value that equals the number of items in the list you get an out of bounds error. Removed the equals part of the test as last item in list/dictionary items is len(list)-1 not len(list)
2021-04-08I simplified the countdown, by moving it into it's own function instead of ↵Anton Hvornum
wrapped inside guided.. This can now be used by others for a simple countdown. I also re-worked the minimal.py example to work with the new internal partitioning logic API as well as support some flags from archinstall.arguments to minimize user input requirements to just one single question. This one question will most likely go away too, but stays for simplicity right now.
2021-04-07Assume yes is the user's intention if empty response for pipewire promptDylan Taylor
2021-04-07Merge PR #208: Temporary incorp of audio selectionAnton Hvornum
Implement PipeWire sound server as an option, merging so we can work on this more. No this will not make it into the release as-is, it's just a working branch and this will change :)
2021-04-07Merging changes from master into feature branch to avoid future conflics.Anton Hvornum
2021-04-07Change phrasing to indicate pulseaudio as defaultAnton Hvornum
2021-04-06Move choice into guided installation instead of DEsDylan M. Taylor
Arch wiki says packages should enable the user services automatically
2021-04-06Merge pull request #188 from SecondThundeR/masterAnton Hvornum
Fix incorrect behavior for empty sudo username
2021-04-05Fix incorrect behavior for empty sudo usernameSecondThundeR
2021-04-05Merge pull request #170 from SecondThundeR/masterAnton Hvornum
Add validation check for username
2021-04-05Update regex rule and move check to a functionSecondThundeR
2021-04-05Replace lowercase conversion with correct checkingSecondThundeR
2021-04-04Removing background color definitions for all log functionsZach Osman
2021-04-04Add lowercase conversion for usernamesSecondThundeR
2021-04-04Fix misspellingsRafael Fontenelle
2021-04-04Merge pull request #158 from advaithm/masterAnton Hvornum
Network manager support
2021-04-04fixed some typos and changed up how we detect if we have to enable/install ↵advaithm
network manager
2021-04-04moved around the if blockadvaithm
2021-04-04fixed typoadvaithm