Adriaan de Groot
3a0b75a006
Merge branch '3.2.x-stable' into calamares
2022-06-19 16:05:17 +02:00
Adriaan de Groot
b11ee3abc5
[libcalamares] Add alternatives ca@valencia and ca_ES@valencia
2022-06-19 15:34:20 +02:00
Adriaan de Groot
2478570deb
[libcalamares, keyboard] Use convenience for getting current locale
2022-06-18 00:40:26 +02:00
Adriaan de Groot
d80661211c
[libcalamares] Introduce convenience for reading Locale map
2022-06-18 00:23:21 +02:00
Adriaan de Groot
42f9f07a07
[libcalamares] The spinner doesn't support rich text
2022-06-10 01:27:37 +02:00
Adriaan de Groot
9f91b50553
[libcalamares] Use Q_EMIT instead of 'emit'
2022-06-10 01:04:43 +02:00
Adriaan de Groot
821a62ffbb
[libcalamares] Add missing <memory> for std::unique_ptr
...
SEE #1972
2022-06-02 14:38:44 +02:00
Adriaan de Groot
72240d0d59
Merge branch 'work-3.3' into calamares
2022-05-29 17:22:36 +02:00
Adriaan de Groot
3e72635204
[libcalamares] Fix path-search for loading branding-translation
...
- log which path is actually being used
- there are two overloads for QTranslator::load(); the intention
was to call `QTranslator::load(const QLocale&, ...)`, but the
types of the arguments were wrong, leading to the other
overload being called, and interpreting the locale-name
(e.g. "nl") as a full filename.
Improve logging, call the "other" overload with the right parameters
and drop the not-needed ones.
FIXES #1961
2022-05-29 00:55:35 +02:00
Adriaan de Groot
4a852facb3
[welcome] Use generated about string
2022-05-23 16:57:51 +02:00
Adriaan de Groot
09255a1d9c
[libcalamares] Add a more extensible About message
...
- make the years easier to update without annoying translators
- make the maintainers extensible.
2022-05-23 16:45:23 +02:00
Adriaan de Groot
66682b3e84
Merge branch 'calamares' into work-3.3
2022-05-18 15:13:21 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
dalto
152f99fb07
Remove useless emits
2022-05-13 17:24:07 -05:00
Adriaan de Groot
52e2c8c262
[libcalamares] Use stronger type, rather than comment
2022-05-10 00:30:35 +02:00
Adriaan de Groot
21aa608ce2
Merge branch 'calamares' into work-3.3
2022-05-05 23:35:53 +02:00
Adriaan de Groot
091eb9683b
[libcalamares] Give Occitan a native name
2022-05-05 15:23:54 +02:00
Adriaan de Groot
4be25e2f70
[libcalamares] Special-case the regions through the lookup-table as well
2022-05-05 15:20:29 +02:00
Adriaan de Groot
2de7736291
[libcalamares] Replace locale special-cases by a table
...
Replace the function with a table-driven approach,
since that is somewhat easier to extend to more
languages.
2022-05-05 14:42:12 +02:00
Lt-Henry
a8857e51f4
Improving special-case language detection
2022-05-05 11:12:29 +02:00
Adriaan de Groot
4713f0be42
Merge branch 'calamares' into work-3.3
2022-05-04 11:59:46 +02:00
Adriaan de Groot
1f7b2a3d2d
[libcalamares] Remove CommandList destructor
...
The destructor was just the default one, but declaring it
blocks the default copy constructor.
2022-05-04 11:38:42 +02:00
Adriaan de Groot
792c4914b0
[libcalamares] Compare translation IDs, extend find()
...
Allow naive comparison of translation IDs (e.g. "ca@valencia"
against other IDs) and make it easier to find one.
2022-05-04 10:35:43 +02:00
Adriaan de Groot
5307976179
[libcalamares] Special-case startup for some languages
2022-05-04 10:10:35 +02:00
Adriaan de Groot
d7459e2bfe
CMake: modernize optional parts of libcalamares
2022-04-25 15:23:27 +02:00
Adriaan de Groot
585d06494e
CMake: fix linking with modern Python and Boost
2022-04-25 14:47:18 +02:00
Adriaan de Groot
b129cb0786
[libcalamares] Match roles from model to Qt standard roles
2022-04-20 16:25:28 +02:00
Adriaan de Groot
07f4ec529b
[libcalamares] Clean up requirements model API
...
- don't need friends
- made modify-the-model API public where it makes sense
- improve naming
2022-04-20 15:39:53 +02:00
Adriaan de Groot
7e5df42fc0
Merge branch 'issue-1924' into work-3.3
...
This is a rather clunky implementation of re-check requirements.
"Clunky" because the UI parts are re-created each time, rather
than fishing from a model of checked (or unchecked) requirements.
The Widgets parts should be updated to use a full model, rather
than the recreate-list-of-Widgets implementation they have now.
Unrelated changes pull in a bunch of improvements to the
waiting spinner widget.
2022-04-16 12:34:40 +02:00
Adriaan de Groot
a9e098b0b4
[libcalamares] Allow resetting the requirements model
...
- When a requirements checker starts, it can reset the model
to clear it of previous entries.
2022-04-13 17:08:17 +02:00
Adriaan de Groot
bbea67ecb4
[libcalamares] Add an expand() to command lines and lists
...
- While this is primarily convenient for testing (e.g. checking
that a command is expanded the way we expect), it simplifies
some of the code because it's now clear that run() uses an
expanded copy of the command-list to do the actual work.
2022-04-13 14:08:21 +02:00
Adriaan de Groot
d76dd2f8e0
[libcalamares] Use new expander in CommandList
...
- This switches @@ROOT@@ for ${ROOT} and uses standard macro-
expansion mechanisms for the commands; undefined variables
will be logged as well.
2022-04-12 16:06:42 +02:00
Adriaan de Groot
f923dedc3f
[libcalamares] Add a word-expander
...
This is a variant on KMacroExpander, which allows for
reporting of errors after expansion.
2022-04-12 15:28:07 +02:00
Adriaan de Groot
576f244d2d
*: Chase new namespace Calamares::String
2022-04-12 14:15:52 +02:00
Adriaan de Groot
d03a8acc9d
[libcalamares] Create namespace Calamares::String
...
This is a step towards getting rid of CalamaresUtils and
using more structured namespaces overall, e.g. Calamares::String
for things related to string-handling.
2022-04-12 14:14:02 +02:00
Adriaan de Groot
82b5ca8bfc
Merge branch 'calamares' into work-3.3
2022-04-12 12:44:39 +02:00
vt
73462d9214
[libcalamares] Fix file-reading from target system
...
readTargetFile was not fully reading files because of an incorrect
EOF check. This could cause /etc/openswap.conf files to be
truncated and hibernation to fail on installed systems.
2022-04-10 19:36:38 -04:00
Adriaan de Groot
9e4b2d14cb
[libcalamares] Add a path parameter when creating descriptors
...
This allows us to print the path of a descriptor file in
error messages, which in turn makes it easier to find
problems with the descriptor files.
2022-03-28 12:29:47 +02:00
Adriaan de Groot
ec3282e15d
[libcalamares] Allow checking a Once object for repeat messages
2022-03-28 12:28:07 +02:00
Adriaan de Groot
f888cb87d1
[libcalamares] Start deprecating signed sizes
2022-03-22 15:23:24 +01:00
Adriaan de Groot
97031ea3e6
[libcalamares] The amount of memory in the system cannot be negative
2022-03-22 15:23:24 +01:00
Adriaan de Groot
99b19b9539
[libcalamares] Always log to file, sometimes to terminal
2022-03-22 12:54:54 +01:00
Adriaan de Groot
aedb55ea36
[partition] Require modern KPMCore
2022-03-21 23:44:20 +01:00
Adriaan de Groot
49c56add7d
Merge branch 'calamares' into work-3.3
2022-03-21 23:21:54 +01:00
Adriaan de Groot
7aafeec2cb
[libcalamares] Fix entry-format, it was totally bogus
2022-03-01 16:14:45 +01:00
Adriaan de Groot
2f782f18c4
[libcalamares] Fix file reading
...
- atEnd() doesn't behave as expected
- drop the textstream, not needed
- rename variables to be more descriptive
2022-03-01 16:13:25 +01:00
Adriaan de Groot
60630efa6a
[partition] Log DBus calls and switch to blocking calls to ensure they happen
2022-03-01 14:03:04 +01:00
Adriaan de Groot
c5fec83f64
[libcalamares] Fix typo
2022-02-28 11:30:36 +01:00
Adriaan de Groot
f2a6736883
[libcalamares] More chatty when DBus fails
2022-02-28 11:29:45 +01:00
Adriaan de Groot
5b40f17b9c
[libcalamares] Prep-work for supporting non-Solid automounting
2022-02-28 11:26:57 +01:00