6066 Commits (0e054f1246308f21746e5e521efc2b1e023f8143)
 

Author SHA1 Message Date
Adriaan de Groot c99742bc70
Merge pull request #1127 from a-wai/partition-layout-size-checks
Add various checks for partition layout configuration
6 years ago
Adriaan de Groot cf51eb7aab [keyboard] Apply source formatting
- Move errant attribution line to the copyright headers;
   unsure of the year though.
 - Apply Calamares coding style.
6 years ago
Adriaan de Groot 118f9255fd [keyboard] Refactor sectioning
- Look for section in a consistent fashion
 - Simplify parsing loops
6 years ago
Adriaan de Groot fa70b3aa60 [keyboard] Refactor keyboard model loading
- Don't need private static methods
 - Pass char* if that's what we've got
6 years ago
Adriaan de Groot 3c014a868c [keyboard] Make keyboard preview more robust
- Replace #define with static const char
 - Handle FreeBSD as well (for testing purposes)
6 years ago
Adriaan de Groot b704933b58 [keyboard] Avoid crash with unconfigured keyboards
- If there's no items at all, ->currentItem() can return nullptr,
   so don't dereference that.

Found on FreeBSD.
6 years ago
Adriaan de Groot fd5097c466 Merge branch 'reduce-warnings' 6 years ago
Adriaan de Groot 3e88b408fa [calamares] Remove unused item Role 6 years ago
Adriaan de Groot 3ccbcdc1bd [libcalamares] Don't moc on JobQueue
- There is no reason for JobThread to have a Q_OBJECT macro,
   so drop the moccing (this also stops some warnings from
   the generated moc code).
 - Define the (virtual) destructor out-of-line to avoid vtable
   warnings.
6 years ago
Adriaan de Groot a1e08d2236 [keyboard] Don't use useless rvalue-ref
- Weird && usage here made redundant through RVO, just return
   something normally instead.
6 years ago
Adriaan de Groot 123c774a47 Use new automoc options 6 years ago
Adriaan de Groot bdb7bf71a8 Reduce warnings from moc-generated code
- The auto-generated code produces a lot of warnings from
   Clang 8; this obscures the more meaningful warnings from
   actual Calamares code, so tone the warnings down.
 - For Clang, set CALAMARES_MOC_OPTIONS.
 - Add convenience CMake function for automoccing. It applies
   the options as needed to a given target.
6 years ago
Adriaan de Groot cef2f50510 Reduce warnings about extra ;
- Trailing ; after Q_UNUSED
 - Trailing ; after CALAMARES_RETRANSLATE
6 years ago
Adriaan de Groot c83395ff6d Reduce warnings for yaml-cpp
- Use only utils/YamlUtils.h to pull in yaml-cpp and supporting code.
 - When compiling with clang, turn off warnings that the system header
   for yaml-cpp would generate.
6 years ago
Adriaan de Groot 27140ff5bb [libcalamares] Reduce warnings in KDAB code
- This is an older copy of kdsingleapplicationguard, now updated for
   C++11 warnings; removed __ in header guards, fixed up last of 0-for-
   nullptr, signedness mismatch.
6 years ago
Arnaud Ferraris 123222c0a8 Add global checks for partition layout
This commit adds several checks while reading the configuration of the
`partition` module, in case the partition layout configuration is
misformed. If an error is encountered, an message is printed to the
console and the module reverts to the default partition layout.

Checks are also added when implementing the partition layout, in case a
problem occurs that couldn't be anticipated (for example, when a
partition size is in %, checking its absolute value require knowing the
total device size, which is not the case when the configuration is
being read).

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Arnaud Ferraris d32733bf59 Switch to using PartSize class for partition sizes
Every call of `ParseStringSize` is replaced by using an instance of the
`PartUtils::PartSize` class.

This commit also removes the now-unused previous size parsing functions.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Arnaud Ferraris 3a58ae5e8b Introduce new partition size class based on NamedSuffix
In order to maintain consistency, and make use, create a new PartSize
class in the PartUtils namespace, which inherits from NamedSuffix for
easier parsing and handling of size strings.

The switch to using this class instead of the previous functions will be
done in a follow-up commit.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Arnaud Ferraris 680b0bc472 Add missing header to NamedEnum
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
6 years ago
Adriaan de Groot 92b60dac65 [libcalamares] Warnings-- over extra ; 6 years ago
Adriaan de Groot 620940c75b [libcalamaresui] Drop now-unused sortKey from LocaleLabel
- sortKey is unused
 - add englishLabel for reverse-i18n
6 years ago
The feren OS Dev a7ac046b3d
Update copyright headers 6 years ago
The feren OS Dev 9cafd0a495
Update copyright headers 6 years ago
The feren OS Dev 455505ba78
Update copyright header 6 years ago
The feren OS Dev 825c92582a
Update ViewManager.cpp 6 years ago
The feren OS Dev 700e6f0ec6
Update Settings.h 6 years ago
The feren OS Dev 6d6c152f70
Update Settings.cpp 6 years ago
The feren OS Dev d31f2d2116
Update Settings.cpp 6 years ago
The feren OS Dev 02d6e1a946
Update Settings.cpp 6 years ago
The feren OS Dev 08249af716
Add 'dont-cancel' to settings.conf 6 years ago
The feren OS Dev 3a8a8d3f17
Update CHANGES 6 years ago
The feren OS Dev a79dfa4135
Added myself to the copyright header 6 years ago
The feren OS Dev c0d61b666d
Made amendments based on review
Fixed 'prepend' terminology in comments, restored old loop as it seems to work for me now in overwriting the file as one overall multiline instead of overwriting the file with each line at a time, code simplification based on review comments... credits-adding will come in the next commit.
6 years ago
Adriaan de Groot 5e951466df [libcalamaresui] Sort languages by ISO code
- this puts the Englishes together, and is less confusing than
   sorting with American first.
6 years ago
Adriaan de Groot 5994e9b4ce Changes: document what this branch will do 6 years ago
Adriaan de Groot 1f66062c81 CMake: bump version, new stub in CHANGES 6 years ago
Adriaan de Groot c6d51f2527 CHANGES: Fix release date of 3.2.5 6 years ago
Adriaan de Groot 44de004068 CHANGES: Fix up Caio's name 6 years ago
Adriaan de Groot 329bd36929 [libcalamares] Sanitize logging 6 years ago
Adriaan de Groot 93be1a6582 [partition] Remove confusing spaces in logging 6 years ago
Adriaan de Groot dbac9ecf7b [partition] Remove unused code
- The name table is in PartitionActions::Choices
6 years ago
Adriaan de Groot d2404851cd [partition] Reduce warnings (shadow, ;, types) 6 years ago
Adriaan de Groot 1a4a265262 [partition] Refactor check for ISO9660 6 years ago
Adriaan de Groot 75f1a05fec [partition] No copy-constructor for CDebug 6 years ago
Adriaan de Groot 009dfd7de5 [locale] Reduce warnings (shadowed global) 6 years ago
The feren OS Dev 3ecd031d9d
Better LightDM Autologin Support
This change fixes a few issues and adds a few improvements to the LightDM Autologin configuration process:

Fixes:

- Fixes malforming of configuration file out of the box, as without `[SeatDefaults]`, `[Seat:*]` or similar in the configuration file LightDM will break on a lot of distributions using LightDM

- Preserves the intended lightdm.conf file settings outside of `autologin-user` if the distribution has an /etc/lightdm/lightdm.conf file of its own

Misc. changes:

- Small spelling fix
6 years ago
Adriaan de Groot 094110dccf CI: make the release script more flexible 6 years ago
Calamares CI 189b33a376 i18n: [python] Automatic merge of Transifex translations 6 years ago
Calamares CI b1a8043ee7 i18n: [calamares] Automatic merge of Transifex translations 6 years ago
Adriaan de Groot ef3b4c387c [libcalamaresui] Remove unused AbstractPage 6 years ago