4740 Commits (8947f9c00c3a397a11f44ebdb3651f48196ea96c)

Author SHA1 Message Date
Adriaan de Groot 8947f9c00c [libcalamares] Test the Entropy service 5 years ago
Adriaan de Groot a574b43eb8 [libcalamares] Also report empty buffer as no-entropy 5 years ago
Adriaan de Groot 842a90e026 [libcalamares] Add an Entropy service for getting random data
- Tries to get the "best" random data
 - Reports the quality of the random data it got
5 years ago
Adriaan de Groot 252ce70203 i18n: updated (English) source files 5 years ago
Adriaan de Groot b38ae75bef Merge branch 'translate-checks' 5 years ago
Adriaan de Groot 8f581ca861 [welcome] Coding style
- apply coding style, add {}
 - remove unneeded includes (moved to the widgets)
 - update copyright
5 years ago
Adriaan de Groot a09593e4a2 [locale] Tighten up language-matching
- Drop plain startsWith() matching, since we now have "as" and "ast"
   as supported languages, where one name is a prefix of the other.
5 years ago
Adriaan de Groot 49690fc681 [locale] Remove superfluous code
- the list is already filtered for UTF-8, so this is redundant
 - this *incidentally* fixes the problem with Assamese and Asturian,
   since Assamese (as_IN) was having its only entry removed,
   after which it would match Asturian (ast_ES)
5 years ago
Adriaan de Groot 97f622e094 [locale] Use standard algorithms 5 years ago
Adriaan de Groot 6b77d5db4a [welcome] Add detail messages for root and screen checks
- these were empty, so the widgets were hidden in the details
   dialog of the requirements check; which looks really strange
   if the reason the check fails is because root is required,
   and you can't see that in the details.

This commit is on a branch because it changes strings, and I want
to do a release Real Soon and not annoy the translators.
5 years ago
Adriaan de Groot ad4ac1d25c [welcome] Update copyrights 5 years ago
Adriaan de Groot 9d69d0a893 [welcome] Remove unused variables 5 years ago
Adriaan de Groot 1ac4786365 [welcome] Move all the translation work to the slot
- this needs to (re)check the satisfaction states to figure out the
   message, but that's useful if the state of the checks changes
   (e.g. in #1106)
5 years ago
Adriaan de Groot 221a79b64c [welcome] Simplify logic
- \not mandatorySatisfied \implies \not requirementsSatisfied,
   so the ifs can be combined and simplified
5 years ago
Adriaan de Groot 28d91979c3 [welcome] Make resultWidgets less error-prone
- instead of counting and needing to keep track of the predicate
   applied while creating the widgets, push nullptrs to the widget
   list instead reflecting "this entry did not satisfy the predicate
   for widget creation".
5 years ago
Adriaan de Groot 39534325e6 [welcome] Re-use widget creation code
- for the list, the code can be the same as for the dialog,
   only the predicate is different.
 - while here, implement retranslate() since there's no text on
   the list widgets otherwise.
5 years ago
Adriaan de Groot 38d58e5b16 [welcome] Hoist explanatory-label code
- Create the label once, and it's ok for it to respond to links
   even if there's none in the code.
 - Turn into a member variable in preparation for retranslation-refactor.
5 years ago
Adriaan de Groot b476e4b386 [welcome] Refactor link-clicking
- remove intermediate lambda
 - rename dialog slot to one handling links in general (which now
   **only** does the dialog link)
5 years ago
Adriaan de Groot ecc7719abd [welcome] Hoist checking for requirements-satisfied
- lift it out of the loop that creates the widgets
 - some lambda-wankery, but the compiler hammers this down to
   simple loops and you can read the resulting code as

	none_of  [the list]  isUnSatisfied
	none_of  [the list]  isMandatoryAndUnSatisfied
5 years ago
Adriaan de Groot f5c0e57f17 [welcome] Improve variable naming
- these two are about whether all the checkEntries are satisfied
   (in general, and the mandatory ones) so make the names reflect that.
5 years ago
Adriaan de Groot 5795801be5 [welcome] Remove unneeded member variables.
- local to the constructor, only needed to be members because
   of the weird split between constructor and init()
5 years ago
Adriaan de Groot 5aae736ced [welcome] Create ResultWidget in separate method 5 years ago
Adriaan de Groot bede280f91 [welcome] Refactor ResultsListWidget
- no point in having init() called immediately after the constructor,
   if it only makes sense to have one call to init() ever to create
   the widget.
 - while here, give it the same kind of structure as the dialog,
   holding on to a reference to the list.
5 years ago
Adriaan de Groot 320dcac946 [welcome] Drop unneeded member variable 5 years ago
Adriaan de Groot ed1b3b576f [welcome] Refactor ResultsListDialog
- drop useless debugging
 - add documentation
 - move to its own spot in the file (not mixed in with ResultsListWidget)
5 years ago
Adriaan de Groot 41ac21bdcd [welcome] Refactor results-details dialog
- Factor out the "details" dialog into a separate class
   with a translation slot. This resolves the crash reported in #1307.
5 years ago
Calamares CI a017451607 i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Calamares CI ae2536a9c3 i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
Adriaan de Groot 39cc13cb25 [shellprocess] Tidy code
- resolve TODO, use a unique_ptr to hang onto the command-list
 - sort the #includes, use correct quoting
5 years ago
Adriaan de Groot 71a73ee1a1 [libcalamares] PythonJob created with InstanceKey 5 years ago
Adriaan de Groot 96946a8447 Merge branch 'fix-unpackfs-progress'
This is an ugly hack, using Bill Auger's support for Job weights.
The unpackfs job is arbitrarily awarded a weight of 12. That makes it
(in a Netrunner install) use progress from 12% to 40% or so, overall,
as all the files are unpacked.

Also fixes bug reported by Kevin Kofler that unpackfs was only reporting
progress when it hit an exact multiple of 100 (instead of over 100).

SEE #1176
5 years ago
Adriaan de Groot 9976e92659 [libcalamares] Enlarge unpackfs to 12x 5 years ago
Adriaan de Groot d4b24894cb [libcalamares] Weigh unpackfs extra heavy
- This is a gross hack, which hard-codes unpackfs as much-heavier
   than other Python modules.
5 years ago
Adriaan de Groot 0c9188ee83 [libcalamares] Document JobWeight 5 years ago
Adriaan de Groot cdd2b9cc79 Modules: set noconfig:true on Python modules
- hwclock, initramfs, localecfg and networkcfg don't have any
   config file to work with, so set that explicitly in the module.desc
5 years ago
Adriaan de Groot 8d47751cb2 [libcalamares] Beautify debug output for InstanceKey 5 years ago
Adriaan de Groot 83ffbd5126 [libcalamaresui] Only load config file if there is one
- finally, no more warnings for modules that are NO_CONFIG
   (or noconfig: true) and don't have a config file.
5 years ago
Adriaan de Groot f366e3840f [libcalamaresui] Chase stronger typing of ModuleDescriptor 5 years ago
Adriaan de Groot 00deeec8c8 [libcalamaresui] Use InstanceKey instead of strings
- Replace return type of Module::instanceKey() by the structured
   ModuleSystem::InstanceKey type
 - Chase API breakage
5 years ago
Adriaan de Groot b5d0acdf81 [luksbootkeyfile] Set NO_CONFIG 5 years ago
Adriaan de Groot 40f64f0c11 [hostinfo] Set NO_CONFIG and remove unused configuration methods 5 years ago
Adriaan de Groot fd058302b8 [dracutlukscfg] set NO_CONFIG and coding style 5 years ago
Adriaan de Groot 6530c889f0 Merge remote-tracking branch 'origin/use-idkey' into no-config
- Join to a single branch that does a bunch of tidying
   in the type-strictness of module interfaces.
5 years ago
Adriaan de Groot 155db29ccf [libcalamares] Add a ModuleSystem::Descriptor
- this is currently just an alias for QVariantMap, which is
   the type already in use.
 - future plan is to tighten this up and have an actual
   Descriptor class that carries only the information
   actually needed for the module descriptor.
5 years ago
Adriaan de Groot 974d795390 [libcalamares] Shuffle module-loading logic
- group ifs by the state of thisModule
5 years ago
Adriaan de Groot 58931d99fa [libcalamaresui] Support noconfig setting
- look up the descriptor and use its noconfig value
 - return empty QString if noconfig is set; this does not
   apply to custom instances
5 years ago
Adriaan de Groot 649eb94d24 [libcalamaresui] Type-alias for module descriptors 5 years ago
Adriaan de Groot 8fbe676280 [libcalamaresui] Refactor finding config file name
- check for broken custom instances earlier in the loop
 - make free function for finding the config file name
5 years ago
Adriaan de Groot d1f162f92a Docs: describe *noconfig* module option 5 years ago
Adriaan de Groot 10d1c4cf5b [unpackfs] Improve progress reporting
- don't rely on exactly 100 files being copied (thanks to Kevin Kofler)
5 years ago