Commit Graph

103 Commits

Author SHA1 Message Date
Anton Hvornum 1bd6a19dc4 Made Profile() json-dumpable 2020-10-18 20:27:40 +02:00
Anton Hvornum fa4be63e48 Forgot an import, as well as made BlockDevice() have less verbose output on json.dumps. 2020-10-18 20:26:09 +02:00
Anton Hvornum 3d4eaec466 Forgot an import 2020-10-18 20:19:21 +02:00
Anton Hvornum 17a70eb9f4 Removed a stub function 2020-10-18 20:18:20 +02:00
Anton Hvornum d5effa744f Added a JSON serializer for certain non-json objects. 2020-10-18 20:17:45 +02:00
Anton Hvornum 9c5d1e9891 Added error handling to guided.py when not selecting a profile to install. 2020-10-18 13:20:58 +02:00
Anton Hvornum 0e8130af9a Wrong relative import, corrected to avoid .lib.lib.exceptions 2020-10-18 13:13:09 +02:00
Anton Hvornum fd3bcdd7db Merge remote-tracking branch 'origin' into guided 2020-10-18 13:08:24 +02:00
Anton Hvornum d95b915681 Logical issue with how I'm used to dealing with selecting list indexes. 2020-10-18 12:51:33 +02:00
Anton Hvornum a73f0b0135 Added a session-storag. This is in an attempt to build away some magic functionality that might otherwise be hard to understand/maintain over a long period of time. Using this in profiles/desktop.py as a test. 2020-10-18 12:28:12 +02:00
Anton Hvornum ec49a42f2b Wrong variable name (from a copy paste issue) 2020-10-18 12:04:27 +02:00
Anton Hvornum 973abec854 Merge remote-tracking branch 'origin' into profile 2020-10-18 11:58:53 +02:00
Anton Hvornum 90eff26657 Reverted TTS implementation from 35913c4. Since blind people use screen readers for this functionality. Will have a look at http://www.linux-sppeakup.org/. 2020-10-18 11:58:29 +02:00
Anton Hvornum a60a3ca812 Added profile `desktop.py` which helps users select a desktop environment. Also added `archinstall.generic_select` to help with selecting generic things from a list of options. 2020-10-18 10:46:28 +02:00
Anton Hvornum 1a10fe3f51 Implementing error handling for #50. So that the errors do not come at the very end, but in the beginning right after the user inputted something (quicker feedback to the user). 2020-10-18 09:58:33 +02:00
Anton Hvornum 35913c4ebe Added imports for `archinstall.TTS()` as well as added optinal depends for `PKGBUILD` files. 2020-10-11 14:04:41 +02:00
Anton Hvornum 2f5aa052a1 Added text-to-speach, untested but the base is now added. It routes through if available. And can be accessed with directly if needed. 2020-10-11 14:02:01 +02:00
Anton Hvornum d043f487b2 Added user_interaction documentation. 2020-10-01 22:01:52 +02:00
Anton Hvornum a91aea3154 First complete draft of the documentation. Some autodocs are still unpopulated but will be done via code and not reST chapters. 2020-09-30 22:24:57 +02:00
Anton Hvornum 54e2161e29 Tweaked the import logic so that the Imported() class returns the actual module imported when executing the import, rather than returning itself. Also fixed awesome so that it loads and looks for _prep_function() with a safe and correct namespace 2020-09-30 09:56:35 +00:00
Anton Hvornum 63d774b7d7 Fixing a import logic issue. We don't want to trigger if __name__ ... during _prep_function() calls. So we'll import the module with a specific namespace containing the .py which shouldn't be able to happen when normal programmers do normal imports as .py gets removed normally. 2020-09-30 09:38:46 +00:00
Anton Hvornum 1bff423195 Fixing a import logic issue. We don't want to trigger if __name__ ... during _prep_function() calls. So we'll import the module with a specific namespace containing the .py which shouldn't be able to happen when normal programmers do normal imports as .py gets removed normally. 2020-09-30 09:36:45 +00:00
Anton Hvornum 34e8e63f71 Fixed bug: profile names listed by list_profiles() contained a trailing dot. This causes issues later when trying to select a profile from said list. 2020-09-30 09:32:20 +00:00
Anton Hvornum 3cf45bdc03 Fixed a bug where if you selected a region by name, not number. It would bork out. 2020-09-30 09:25:04 +00:00
Anton Hvornum fad2c36cd2 Fixed a type-o 2020-09-30 09:14:17 +00:00
Anton Hvornum 85fd06fa8a Finalized magic function _prep_function(). Gets returned when a profile is imported through archinstall.select_profile() user-interaction helper function. Asks for additional user-input right away rather than half way into the installation. This makes sure user input is taken care of before starting the installation. Although it complicates the code layout a tiny bit. Profiles need a __name__ and a _prep_function combo in order to be safely executed by select_profile(). select_profile() will not attempt to run or execute the code in any way unless those to conditions are met. In theory :) 2020-09-30 09:11:36 +00:00
Anton Hvornum 5a4d68e617 Fixing awesome and xorg for first test run. 2020-09-30 08:37:54 +00:00
Anton Hvornum 5ce8c20333 Fixed some selection processes. 2020-09-29 22:26:40 +00:00
Anton Hvornum f896342147 Adding a baseline xorg profile that can be called from other profiles. Such as the awesome profile, and in the future gnome and kde. 2020-09-29 22:09:28 +00:00
Anton Hvornum 6338e7116e Removed AUR support (Moving to a separate project, possibly as an addon layer later) 2020-09-29 21:01:10 +00:00
Anton Hvornum d44c671661 Adding package search via upstream package database and JSON. 2020-09-15 11:14:58 +00:00
Anton Hvornum 9b65bf4bbb Spelling error in locale helpers. 2020-09-07 15:41:19 +02:00
Anton Hvornum 4dcafa7ec8 Tweaking the mirror selection vs automatic mirror processes. 2020-09-01 14:52:59 +02:00
Anton Hvornum 1cdd96f9aa Renamed services again after re-save to the wrong name. 2020-09-01 14:43:04 +02:00
Anton Hvornum 99dcdc357f Wrong function name in os.path 2020-09-01 14:37:54 +02:00
Anton Hvornum 4291f3e84e Wrong filename on services 2020-09-01 14:35:34 +02:00
Anton Hvornum 8daae75a78 Adding service logic. Checking if reflector has finished before we select custom mirrors (if any) 2020-09-01 14:33:55 +02:00
Anton Hvornum 323af39ed5 Added archinstall.Installer().set_mirrors, which allows to modify the mirrors in the finished installed medium. 2020-09-01 14:04:47 +02:00
Anton Hvornum 6744d7ac1b Spelling error 2020-09-01 13:57:54 +02:00
Anton Hvornum dd294ba0f3 Added more logging 2020-09-01 13:56:23 +02:00
Anton Hvornum 64f4646eef Fixed copy paste issue within code in the select function. 2020-09-01 13:52:32 +02:00
Anton Hvornum 7734fbee89 Spelling error 2020-09-01 13:49:47 +02:00
Anton Hvornum 35db09298d Spelling error 2020-09-01 13:48:31 +02:00
Anton Hvornum 52a08a492f Added user interaction: select_mirror_Regions 2020-09-01 13:43:19 +02:00
Anton Hvornum 5bba102c45 Added list_mirrors() and prepared for selecting mirrors in guided.py 2020-09-01 12:22:44 +02:00
Anton Hvornum d765763e81 Forgot self in a parameter 2020-09-01 10:36:47 +02:00
Anton Hvornum 677533f765 Added the option to set keyboard layout of installation. Not only on the live medium 2020-09-01 10:33:18 +02:00
Anton Hvornum 8f35f44939 Added locale helpers in terms of keyboard language/layout. archinstall.list_keyboard_languages(), archinstall.search_keyboard_layout() and archinstall.set_keyboard_language() work together to help listing, finding and setting a keyboard layout in terminals. Won't work for X-frontends, but will do for CLI installation methods. Added a language selector-helper-function with a crude search functionality. Added all this to the guided template. 2020-09-01 09:01:14 +02:00
Anton Hvornum e4b9ad9d37 Forgot the syntax of sudoers apparently. Corrected. 2020-08-31 21:38:28 +02:00
Anton Hvornum b91699c0e5 Forgot self. in Installer 2020-08-31 21:12:19 +02:00