Commit Graph

6665 Commits (0143aa5515e69b83248716028ac4c9156a18588f)

Author SHA1 Message Date
Adriaan de Groot 0143aa5515 [libcalamares] Make the branding-loading messages follow same format as the others
Adriaan de Groot d72e42f7ba [libcalamares] Extend (configuration) translated string with context
Make it possible to pass in a context for strings not-from-config
maps, to allow programmatically set, but translatable, strings.
Adriaan de Groot 2a9205ebd9 Merge branch 'issue-1673' into calamares
FIXES 
Adriaan de Groot 165e559866 [netinstall] Extend tests with mixed fallbacks
- insert bad or empty URLs in between successful loads,
  check tail end of loading process.
Adriaan de Groot 21d24eeb8d [netinstall] Add tests for fallback loading
- first success that has data is kept
Adriaan de Groot 4dd6ecd54e [netinstall] Edge cases of zero, or unset, groups urls
- consumers may wait for loadingDone(), so always emit that
  even if no URL list is set.
Adriaan de Groot 9569105575 [netinstall] Extend tests with YAML syntax error and no-files-at-all
Adriaan de Groot 850825f70f [netinstall] Leave the last status on the queue
- Reaching the end means there's no data, but leave the last load result
  (presumably bad-something) around rather than overwriting.
Adriaan de Groot bd2fb552b5 [netinstall] let queue finish properly
- if the queue is emptied, there was no usable data; set
  failure to NoData rather than BadData.
- FetchNextUnless::done() is done only if the parameter is true (that
  is, it's done!); otherwise should continue.
Adriaan de Groot 3e26ae5ad6 Merge branch 'release-3.2.39.x' into calamares
Adriaan de Groot cf0119ed4a [initcpiocfg][plymouthcfg] Consistent find-plymouth code
- drop the debugging line because that has already been
  logged by the call to `runCommand()` that backs
  `target_env_call()`.
- use the same (top-level) function rather than having a
  function and elsewhere a very-similar method.
Adriaan de Groot af12583122
Merge branch 'calamares' into calamares
Adriaan de Groot 67effe4214 [netinstall] check in test that loading did not time out
Adriaan de Groot bd118bb457 [netinstall] Massage test data
- hidden groups aren't counted at all
- count() at top-level of the model counts groups
Adriaan de Groot dfedc0fb21 [netinstall] Extend tests
- add an "empty" groups file
- run an event loop to give the loader the opportunity to load
Adriaan de Groot a21665011f [netinstall] The status is ready (done) when the queue is done
- Don't signal ready every time data is sent to the model, since
  if the model ends up empty, loading will continue with the next
  fallback entry.
Adriaan de Groot 294d07db7b [netinstall] When starting to load YAML data, set appropriate status
- if a list is required, then we don't have data yet and should complain;
  otherwise we're OK even if no data is ever added.
Adriaan de Groot 5af37b0be3 [netinstall] Stub of tests for fallback-loading
Adriaan de Groot 3c398bd15e [netinstall] Only wrap-up if the packages list is OK
Avoid situation where the YAML is ok but doesn't contain
a list of netinstall packages, so the packages list (the model)
is still empty.

FIXES 
Erik Dubois 9651cc0cd7
Update main.py
Johannes Kamprad 44ec9d14a6
Update main.py
adding sway to desktop_environments
Adriaan de Groot 3f1d12ccd8 [users] One more capitalization fix for autologin
FIXES 
Adriaan de Groot 2b8309eb04 [users] Add tests for autologin settings
- four possibilities for old and new keys
- 6e is the check for not-actually-set, to track defaults
Adriaan de Groot adb9f37cca [locale] Set *locale* GS key when needed
The code path for setting the locale / language automatically
emits currentLanguageStatusChanged(), but the code that updates
GS connects to currentLanguageCodeChaged(). This was altered in
the 3.2.28 release cycle. Since then, automcatic locale selection
wasn't setting *locale* in GS, so that a click-through kind of
locale selection would not set it; then the packages module
has no *locale* setting for localization packages.

The combination of status and code signals (machine- and human-
readable) is ok. Introduce a setter to the language that does
the necessary signalling, so that setting the language automatically
also DTRT.

FIXES 
Adriaan de Groot ea61ac4386 [locale] Set *locale* GS key when needed
The code path for setting the locale / language automatically
emits currentLanguageStatusChanged(), but the code that updates
GS connects to currentLanguageCodeChaged(). This was altered in
the 3.2.28 release cycle. Since then, automcatic locale selection
wasn't setting *locale* in GS, so that a click-through kind of
locale selection would not set it; then the packages module
has no *locale* setting for localization packages.

The combination of status and code signals (machine- and human-
readable) is ok. Introduce a setter to the language that does
the necessary signalling, so that setting the language automatically
also DTRT.

FIXES 
Adriaan de Groot db51e813fb Merge branch 'release-3.2.39.2' into calamares
Adriaan de Groot 8a413866a1 [calamares] Make --version print extended versioning information
Adriaan de Groot 21f52f9dc1 [calamares] Remove overly-spaced debug (SubEntry does the right thing)
Adriaan de Groot 18b805d43f [keyboard] Set initial values for model, layout, variant
When loading the lists, no initial string-value was being
set for the model, layout and variant; the configuration
could pass right through and pick up empty strings instead.
If the user does not change the model, the UI would show
"pc105" but the internal setting would still be empty.

FIXES 
Adriaan de Groot b191f39bdf [keyboard] Simplify config-loading
The machinery in `setConfigurationMap()` was just duplicating
checks already in place in the `getString()` and `getBool()`
methods, and there's no special need for efficiency here,
so prefer the more readable and short code.

("efficiency" here means "we're saving one method call in
case the configuration is not set")
Adriaan de Groot 8949b079e1 [users] Fix autologin-setting from config file
SEE 
Adriaan de Groot 9d4c2bf1c7 [displaymanager] Fix mismatch in spelling of "autologinUser"
In 4ffa79d4cf, the spelling
was changed to consistently be "autoLoginUser" in the *users*
module, but that changed the Global Storage key as well,
and the *displaymanager* module wasn't changed to follow.
Erik Dubois d19c3b5458 Update main.py
Typo
Erik Dubois f8494f27d5 displaymanager from arcolinux
Adriaan de Groot bf7b41f548 [libcalamares] Document the Once class for logging
Adriaan de Groot 0ec77f5d85 [partition] Warnings-- (uninitialized value)
Adriaan de Groot df1d7dea61 [partition] Warnings--
Avoid the extra indirection through the otherwise-unused
prettyGptType(const QString&), construct table of names
only on first call to avoid static-initialization order
(though that's not important here).
Adriaan de Groot 0ccd55e33f [libcalamares] Warn (python only) about unknown GS keys
This makes it easier to spot problems where key-names are mis-spelled
in Python (or other modules change a name and it's not applied
to consumers)
Adriaan de Groot b04d59ba2e [libcalamares] More variant->python translations
- There's still 49 enumeration values not handled, leading to
  an annoying Clang warning, but there's just no **point**
  in listing them all: that's what 'default' is for.
Adriaan de Groot 42d00ffe38 [displaymanager] Fix mismatch in spelling of "autologinUser"
In 4ffa79d4cf, the spelling
was changed to consistently be "autoLoginUser" in the *users*
module, but that changed the Global Storage key as well,
and the *displaymanager* module wasn't changed to follow.
Adriaan de Groot 94bd17ecf5
Merge pull request from erikdubois/patch-1
[displaymanager] Update main.py
Adriaan de Groot b95b3dbc78 Merge branch 'ff-fslabel' into calamares
Fix build with newer KPMCore (still builds on Netrunner 19).
Adriaan de Groot 22dbe60bb9 [partition] Use operations-API (available in all supported KPMCore versions)
Adriaan de Groot 47c167c043 [partition] KPMCore removed some headers
Adriaan de Groot e2113eda38 [partition] trust in AutoMoc
Erik Dubois 51d414d6ef
Update main.py
Typo
Adriaan de Groot fac0c90de1 Merge branch 'ff-fslabel' into calamares
This was a PR from Lisa Vitolo a long time ago, to expose
FS labels in the UI, and it got lost in transition.
Five-years-too late thanks.
Adriaan de Groot 3c7d97403e [plasmalnf] Apply coding style
Adriaan de Groot 1eba562d07 [partition] Apply coding style
Adriaan de Groot 9c2a26bed5 [libcalamares] Apply coding style