6714 Commits (d0276fd25fde2717e81ac02c56454847ad175306)

Author SHA1 Message Date
Adriaan de Groot 3e26ae5ad6 Merge branch 'release-3.2.39.x' into calamares 5 years ago
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.
5 years ago
Adriaan de Groot af12583122
Merge branch 'calamares' into calamares 5 years ago
Adriaan de Groot 67effe4214 [netinstall] check in test that loading did not time out 5 years ago
Adriaan de Groot bd118bb457 [netinstall] Massage test data
- hidden groups aren't counted at all
- count() at top-level of the model counts groups
5 years ago
Adriaan de Groot dfedc0fb21 [netinstall] Extend tests
- add an "empty" groups file
- run an event loop to give the loader the opportunity to load
5 years ago
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.
5 years ago
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.
5 years ago
Adriaan de Groot 5af37b0be3 [netinstall] Stub of tests for fallback-loading 5 years ago
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 #1673
5 years ago
Erik Dubois 9651cc0cd7
Update main.py 5 years ago
Johannes Kamprad 44ec9d14a6
Update main.py
adding sway to desktop_environments
5 years ago
Adriaan de Groot 3f1d12ccd8 [users] One more capitalization fix for autologin
FIXES #1672
5 years ago
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
5 years ago
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 #1671
5 years ago
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 #1671
5 years ago
Anubhav Choudhary 5691f95833 [logUpload] Added one more test 5 years ago
Adriaan de Groot db51e813fb Merge branch 'release-3.2.39.2' into calamares 5 years ago
Adriaan de Groot 8a413866a1 [calamares] Make --version print extended versioning information 5 years ago
Adriaan de Groot 21f52f9dc1 [calamares] Remove overly-spaced debug (SubEntry does the right thing) 5 years ago
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 #1668
5 years ago
Anubhav Choudhary b897619558 [logUpload] Added some basic tests 5 years ago
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")
5 years ago
Adriaan de Groot 8949b079e1 [users] Fix autologin-setting from config file
SEE #1668
5 years ago
Anubhav Choudhary c73e9ec89f [logUpload] Ran styleScript 5 years ago
Anubhav Choudhary c1aa0b581e [logUpload] suggestionsAndFixes-part3
- Resolved the problem of incomplete log upload
- sizeLimit = 0 fixed (turns off paste functionality)
- Documentation update
- sizeLimit < 0 now needs no hardcoded upper limit
- Calamares::Branding::uploadServerFromMap() serves sizeLimit in bytes
5 years ago
Anubhav Choudhary b42f86f20f [logUpload] suggestionsAndFixes-part2 5 years ago
Anubhav Choudhary d109fc5856 [logUpload] suggestionsAndFixes 5 years ago
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.
5 years ago
Erik Dubois d19c3b5458 Update main.py
Typo
5 years ago
Erik Dubois f8494f27d5 displaymanager from arcolinux 5 years ago
Anubhav Choudhary 6a6557e320 [logUpload] fixes 5 years ago
Anubhav Choudhary 6726a926a4 [logUpload] Configurable upload size limit
A key 'sizeLimit' added to uploadServer field in branding.desc to limit the size of logFile to upload.
5 years ago
Adriaan de Groot bf7b41f548 [libcalamares] Document the Once class for logging 5 years ago
Adriaan de Groot 0ec77f5d85 [partition] Warnings-- (uninitialized value) 5 years ago
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).
5 years ago
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)
5 years ago
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.
5 years ago
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.
5 years ago
Adriaan de Groot 94bd17ecf5
Merge pull request #1664 from erikdubois/patch-1
[displaymanager] Update main.py
5 years ago
Adriaan de Groot b95b3dbc78 Merge branch 'ff-fslabel' into calamares
Fix build with newer KPMCore (still builds on Netrunner 19).
5 years ago
Adriaan de Groot 22dbe60bb9 [partition] Use operations-API (available in all supported KPMCore versions) 5 years ago
Adriaan de Groot 47c167c043 [partition] KPMCore removed some headers 5 years ago
Adriaan de Groot e2113eda38 [partition] trust in AutoMoc 5 years ago
Erik Dubois 51d414d6ef
Update main.py
Typo
5 years ago
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.
5 years ago
Adriaan de Groot 3c7d97403e [plasmalnf] Apply coding style 5 years ago
Adriaan de Groot 1eba562d07 [partition] Apply coding style 5 years ago
Adriaan de Groot 9c2a26bed5 [libcalamares] Apply coding style 5 years ago
shainer 1007680931 Fix error handling in ChangeFilesystemLabelJob 5 years ago
shainer c035029f38 Make sure we always set the filesystem label.
In particular, we need a separate Job class to set the label; this
is invoked after we formatted a partition, and when no other changes
to the partition have been requested in the Edit dialog.
5 years ago
Adriaan de Groot 3d49379bec [partition] Chase API change in createNewPartition()
The partition- and filesystem-label setting code was already there,
but not in the call to createNewPartition(); now we set the
FS label twice (once in the call, once afterwards)
5 years ago
shainer b602d423c7 Allow users to set/edit filesystem labels.
When creating or editing a new formatted partition, allow
to set a filesystem label (16 chars maximum). Modify
the KPMHelpers to accept it as a new parameter. Partitions
created by default may get a meaningful label too.
5 years ago
Adriaan de Groot ac8f99a206 [libcalamares] Don't double-include FileSystem
The partitioning header 'FileSystem.h' is for KPMCore support;
it is already included by Global.h and guarded by ifdefs for
KPMCore. Do not unconditionally include it from the implementation.
5 years ago
shainer 1cfdc8044c Display current filesystem label as a column in the main partition view. 5 years ago
Adriaan de Groot 559b79f920 [partition] Use (better documented) filesystem-use API 5 years ago
Adriaan de Groot 10bec1d970 [libcalamares] Expand API to allow clearing out the filesystem use 5 years ago
Adriaan de Groot 9665af0e5a [libcalamares] Make keys case-insensitive (as documented) 5 years ago
Adriaan de Groot 48541629f9 [libcalamares] Extend tests to handle case-insensitive 5 years ago
Adriaan de Groot f3681a533e [libcalamares] Rearrange filesystem-use API
- make the functies that take a GS* first-class
- use the convenience functions from JobQueue for the others
- inline so only the explicit-GS* functions are in the library
5 years ago
Adriaan de Groot 488631824d [libcalamares] Make the KPMCore global storage filesystem handlers inline 5 years ago
Adriaan de Groot 75eb2c3cd4 [libcalamares] Add tests for filesystem_use service 5 years ago
Adriaan de Groot afdf431b77 [libcalamares] Add partition service for managing global storage
- the global storage key filesystem_use has a structured meaning,
  so give it a (trivial-ish) API for reading and writing.
5 years ago
Adriaan de Groot 1e1b7b7ece [libcalamares] Introduce a convenience getter for GlobalStorage 5 years ago
Adriaan de Groot cc6a598c61
Merge pull request #1658 from erikdubois/calamares
displaymanager from arcolinux
5 years ago
Adriaan de Groot 88aa1755ce CMake: split out skip-module-checking to its own cmake module
The skip-checking is now in the functions for adding plugins and
subdirectories, so that third-party building should get it
as well, for free. Since AddModuleSubdirectory and AddPlugin
use the newly split-out module, handling SKIP_MODULES and USE_*
consistently across module repositories is now easier.

While here, make accumulating-the-skipped-modules explicit.
5 years ago
Adriaan de Groot dc0164d508 [libcalamares] Also install the version header 5 years ago
Adriaan de Groot 779e5ecf8f [libcalamaresui] Factor out the pastebin UI
- offer a convenience method for showing a popup and
  URL information and copying the URL to the clipboard
- use that from ViewManager (on failure) and DebugWindow (on demand)
5 years ago
Adriaan de Groot 981e96ea7f [calamares] Redo debug window tools
- make the tools tab buttons along the bottom row
- show the global storage tab by default

This costs little screen real-estate, makes the tools much more
visible and useful.
5 years ago
Adriaan de Groot c54e417ff3 [calamares] Add a 'send log' button to the debug window
FIXES #1660
5 years ago
Adriaan de Groot 668921543a [libcalamaresui] Convenience method to check if paste would do anything 5 years ago
Adriaan de Groot 5ed1dff655 Merge branch 'issue-1579' into calamares
FIXES #1579
5 years ago
Adriaan de Groot 3588f06767 [netinstall] Document groupsUrl with multiple entries 5 years ago
Adriaan de Groot fdfe52efe2 [netinstall] Improve loader queue API a bit
- use load() to start loading
- the FetchNextUnless class is useful in more spots in
  the loading process
- set status explicitly on success (otherwise, a failure in a
  previous URL would leave a failure message lying around even
  when the module shows something useful)
5 years ago
Adriaan de Groot 03d086a233 [netinstall] Missing initialisations, split out slot
- m_queue was not initialized to nullptr, crashes
- split queue-is-done to a separate slot rather than a lambda
- prefer queueing calls to fetchNext(), for responsiveness
5 years ago
Erik Dubois 0379fa9b7d displaymanager from arcolinux 5 years ago
Adriaan de Groot 404a9ef98a [netinstall] Split off requesting netinstall data into a queue-manager
This is the actual "meat" of the branch, which makes the
netinstall module request one URL at a time until one succeeds.
5 years ago
Adriaan de Groot 186d32ebee [partition] More missing ; 5 years ago
Adriaan de Groot 2b4bc7adf4 [partition] Apply newer formatting tool 5 years ago
Adriaan de Groot bb426ebac4 [partition] Add missing ; (and apply coding style) 5 years ago
Adriaan de Groot 9341a84820 [libcalamares] Make the RETRANSLATE macros more statement-line
Require a ; after RETRANSLATE macros. They are statement-like;
this makes it easier for some of them to be recognized by
clang-format and resolves some existing weird formatting.
5 years ago
Adriaan de Groot 603a7106b3 [netinstall] Move package-listing wrangling to the Config object
Now all the business logic is in Config, the door is open to
building a QML-ified netinstall module. I'm not sure that
would be worth it: packagechooser offers more space for a
nice UI and should be QML'ed first.
5 years ago
Adriaan de Groot 9acd2fe458 [netinstall] Use the packages service 5 years ago
Adriaan de Groot f1446736f8 [libcalamares] Expand tests a little
- do some additions and check they work
- drop the ";add" annotation on the source, this is not
  needed in the current situation with only adds available.
5 years ago
Adriaan de Groot 5b609565e2 [libcalamares] Make Packages API more flexible
- pass in the GS object; this makes mostly **testing** much easier
5 years ago
Adriaan de Groot b868894371 [libcalamares] Start a packages service for netinstall and others 5 years ago
Adriaan de Groot 6662cb5f2d [netinstall] Swap parameters to makeSourceItem and document it 5 years ago
Adriaan de Groot 79b4f918fc [netinstall] Apply coding style 5 years ago
Adriaan de Groot 8e8525a941 [netinstall] Simplify slots in the UI page 5 years ago
Adriaan de Groot a90f510b85 [libcalamares] Convenience for logging subentries
For methods that log a bunch of things, and which want to
consistently use SubEntry, but don't know when the **first**
log entry is within the method, Logger::Once can be used
to log one regular message (with function info) and the
rest are subentries.
5 years ago
Adriaan de Groot 72f67286a4 [libcalamares] Preserve type CDebug() if possible. 5 years ago
Adriaan de Groot 8fe2e1f68a [finished] Make the debug-log less cryptic 5 years ago
Adriaan de Groot a3a1350dc7 [libcalamares] Don't complain if there isn't a preset
- If the module knows about a preset, then it should be registered
  even if there is not a value set for it specifically; this avoids
  complaints from isEditable() for fields that are known, but
  do not have a preset. (Reported by Anke)
5 years ago
Adriaan de Groot a4c1f07521 [libcalamares] Reduce indentation-depth in apply() through early-return 5 years ago
Adriaan de Groot 33fec86ef6 [welcome] Improve logging of requirements-checking
- less chatty when 0-results come in
- compress the welcome debug to one output chunk
5 years ago
Adriaan de Groot f8afb15c4c [libcalamaresui] Improve logging for QML modules
- mention which instance produces warnings
- tag additional debugging from the same method with Logger::SubEntry
5 years ago
Adriaan de Groot 6556f96442 Merge branch 'calamares' into issue-1579
Bring the branch up-to-date with the past few releases,
so it can be merged more easily once complete.
5 years ago
Adriaan de Groot 416c2c9689 [usersq] Reflect editable in the QML
- if presets prevent a field from being editable, don't allow
  the user to edit the field
- while here, mention the changes in usersq
5 years ago
Adriaan de Groot 44ac33845d Merge branch 'fix-usersq' into calamares 5 years ago
Adriaan de Groot 46f7e6c131 Merge branch 'hotfix-38' into calamares 5 years ago