968 Commits (44ec8a7c0b75f56c89accd1391c8e748f23efb34)

Author SHA1 Message Date
Adriaan de Groot 24e129a413 Merge branch 'issue-1634' into calamares
FIXES #1634
6 years ago
Adriaan de Groot e49f0cf3ba [libcalamares] Document NamedEnum in much more detail 6 years ago
Adriaan de Groot f045e4f00e [libcalamares] Switch default language in Belarus
*If* the distro has GeoIP enabled and auto-selects the language for
Calamares, then Belarus now selects Russian, rather the Belarusian.
This is based on some personal input, mostly, and Wikipedia census data.

FIXES #1634
6 years ago
Adriaan de Groot 38fa1d9567 [libcalamares] Distinguish logging raw, shared and unique pointers
- It shouldn't be necessary to explicitly .get() pointers for
  logging, and it's convenient to know when a pointer is smart.
  * no annotation means raw (e.g. @0x0)
  * S means shared
  * U means unique
6 years ago
Adriaan de Groot c98a330bf9 [libcalamares] Store DBus reply value, drop debug-logging 6 years ago
Adriaan de Groot 1704ad5977 [partition] Add a job to handle automount behavior
- while here, nudge CalamaresUtils automount API a little,
  since it doesn't really need an rvalue-ref.
6 years ago
Adriaan de Groot b9210721e6 Merge branch 'issue-1613' into calamares
The popup now cuts down messages to a manageable length.
Hopefully the part that is preserved, will still show
something meaningful for the user (8 lines of text should
be sufficient for the kind of things we do).

FIXES #1613
6 years ago
Adriaan de Groot eafb8149b3 [libcalamares] Test some degenerate truncation cases 6 years ago
Adriaan de Groot caff0176b1 [libcalamares] Need <memory> for unique_ptr
FIXES #1631
6 years ago
Adriaan de Groot 7ab9c63903 [libcalamares] Extend test with some degenerate cases 6 years ago
Adriaan de Groot 5c402ffd66 [libcalamares] Truncate to a character count as well 6 years ago
Adriaan de Groot 1542bad224 [libcalamares] Truncate strings without trailing newline properly 6 years ago
Adriaan de Groot 8e3ed3c933 [libcalamares] Remove redundant variable, use NEWLINE instead of character-literal 6 years ago
Adriaan de Groot 3623e9aefc [libcalamares] Extend tests of string-truncation 6 years ago
Adriaan de Groot 319a720d1b [libcalamares Expand tests 6 years ago
Adriaan de Groot b144d81979 [libcalamares] Fix up smart-string-truncation
- off-by-one when source ends with a newline
- lastNewLine was being calculated as a left-index into the string,
  then used as a count-from-right
6 years ago
Adriaan de Groot 3be360e433 [libcalamares] Add tests to string truncation
- check that basic manipulations succeed
- trailing-lines selection fails, though
6 years ago
Adriaan de Groot 8cc114bf2c [libcalamares] Move smart-string-truncation to library
Expand the API a little to support first-lines, last-lines,
and something of both. Use strong types to make the names
clear for each.
6 years ago
Adriaan de Groot f0fd47eeb3 [libcalamares] Simplify logging-manipulators
Writing `Logger::NoQuote{}`` has annoyed me for a while, so
switch it to a constant, like SubEntry, so it looks more
like a regular manipulator object.
6 years ago
Adriaan de Groot 9a4c599e22 [libcalamares] Tidy logging a little for Python errors 6 years ago
Adriaan de Groot 3ade1fd84a Merge branch 'add-automount-control' into calamares 6 years ago
Adriaan de Groot b709ba7a5b
Merge pull request #1590 from deprov447/Back/Next_buttons_at_installation
Navigation buttons hideability during installation
6 years ago
Adriaan de Groot 9482935034
Merge pull request #1572 from gportay/partition-output-more-things-in-overiew
[partition] output more things in overiew
6 years ago
Gaël PORTAY bf9c9a64f1 [libcalamares] Introduce new function getPartitionTable 6 years ago
Adriaan de Groot 132ff59d9c [libcalamares] Make running commands less chatty
If there's no output, don't mention it; don't mention failure modes
if the command was successful.
6 years ago
Adriaan de Groot a3eae323f1 [libcalamares] Rename test-executable: avoid clashes with 'cala<tab>' 6 years ago
Adriaan de Groot d74bdbcfd0 [libcalamares] coding-style, logging in calautomount 6 years ago
Adriaan de Groot 3150785ff1 [libcalamares] Use shared_ptr instead of unique_ptr
The value inside a unique_ptr can't be opaque, it needs to be known
at any site where the pointer may be deleted. shared_ptr does not
have that (deletion is part of the shared_ptr object, which is larger
than the unique_ptr) and so can be used for opaque deletions.
6 years ago
Adriaan de Groot 1c4bf58fb4 [libcalamares] automount-manipulation test-program 6 years ago
Adriaan de Groot f0a33a235c [libcalamares] Make automountDisable() more flexible 6 years ago
Adriaan de Groot 9e6bddf31a [partition] Add new AutoMount-manipulating helpers 6 years ago
Adriaan de Groot 1c285f011b [libcalamares] Export partition-syncer symbols 6 years ago
Anubhav Choudhary 0f2320bd47 Initializing bools in settings.h 6 years ago
Anubhav Choudhary 03d1fe434c Navigation button hideability added 6 years ago
Adriaan de Groot f4133a97db [libcalamares] Make test a bit more verbose (before failing) 6 years ago
Adriaan de Groot fa7d2bda16 [libcalamares] Misplaced space in a test-filename 6 years ago
Adriaan de Groot b4aca7e188 [libcalamares] Tidy up documentation for System::runCommand
- Make explicit which one runs in the host, which one is selectable.
- Document *location* parameter in the selectable version.
- Tidy up alignment of apidox.
6 years ago
Adriaan de Groot 83b2b95381 [libcalamares] Reduce object churn
- we don't need to allocate a new translator each time the language changes
6 years ago
Adriaan de Groot 59255c7a57 Changes: apply coding style 6 years ago
Adriaan de Groot be7b63051e Enable keyboard-model and layout-name translations.
SEE #1515
6 years ago
Adriaan de Groot 0bad5469fc [libcalamares] Fix tests failures from JobQueue asserts
Some compile flags changed recently, triggering assert()
in the jobqueue when there is more than one. There's no
real reason for JobQueue to be a singleton, but it wants
to be. So clean up pointers a little more enthusiastically.
6 years ago
Adriaan de Groot 4a08fdbb92 [partition] Reduce warnings from KPMCore
- make KPMHelper.h an "everything include" and suppress warnings
  from it, then use it in the tests.
6 years ago
Adriaan de Groot d26fde6647 [partition] Reduce warnings
- Add a helper header that munges the warnings-settings so that
  KPMcore headers can be included.
6 years ago
Adriaan de Groot b72eba8157 [libcalamares] Extend the Deleter-helper with "preserve"
Sometimes you want to keep the thing around after all.
6 years ago
Adriaan de Groot 7659dfdb9d [libcalamares] Expose a translations-loading function 6 years ago
Gaël PORTAY 03df5f6891 [libcalamares] Fix constness of functions 6 years ago
Gaël PORTAY aec066359a [libcalamares] Fix coding style 6 years ago
Adriaan de Groot ac6c9fae4a [libcalamares] Do not use moved-from object 6 years ago
Adriaan de Groot 98c7cec732 CMake: restore NOTREACHED, without the macro-mess
- gcc (up to at least version 10) is worse at recognizing that all
  cases have been handled, so it complains about all the switches
  that cover enum values.
6 years ago
Adriaan de Groot fea403186f [libcalamares] Search for balance between warnings and annotations
- CI's gcc is too old to analyse a switch() for completeness,
  so the CI build fails.
6 years ago