Adriaan de Groot
9e6bddf31a
[partition] Add new AutoMount-manipulating helpers
2020-12-22 16:05:20 +01:00
Adriaan de Groot
1c285f011b
[libcalamares] Export partition-syncer symbols
2020-12-22 16:03:51 +01:00
Adriaan de Groot
f4133a97db
[libcalamares] Make test a bit more verbose (before failing)
2020-11-30 15:38:17 +01:00
Adriaan de Groot
fa7d2bda16
[libcalamares] Misplaced space in a test-filename
2020-11-30 15:28:08 +01:00
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.
2020-11-11 14:03:23 +01:00
Adriaan de Groot
83b2b95381
[libcalamares] Reduce object churn
...
- we don't need to allocate a new translator each time the language changes
2020-11-05 00:09:23 +01:00
Adriaan de Groot
59255c7a57
Changes: apply coding style
2020-11-05 00:00:29 +01:00
Adriaan de Groot
be7b63051e
Enable keyboard-model and layout-name translations.
...
SEE #1515
2020-11-04 23:36:33 +01:00
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.
2020-11-01 17:59:41 +01:00
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.
2020-11-01 00:20:17 +01:00
Adriaan de Groot
d26fde6647
[partition] Reduce warnings
...
- Add a helper header that munges the warnings-settings so that
KPMcore headers can be included.
2020-11-01 00:05:05 +01:00
Adriaan de Groot
b72eba8157
[libcalamares] Extend the Deleter-helper with "preserve"
...
Sometimes you want to keep the thing around after all.
2020-10-30 15:58:38 +01:00
Adriaan de Groot
7659dfdb9d
[libcalamares] Expose a translations-loading function
2020-10-30 15:58:38 +01:00
Gaël PORTAY
03df5f6891
[libcalamares] Fix constness of functions
2020-10-30 09:42:59 -04:00
Gaël PORTAY
aec066359a
[libcalamares] Fix coding style
2020-10-30 09:42:59 -04:00
Adriaan de Groot
ac6c9fae4a
[libcalamares] Do not use moved-from object
2020-10-30 13:51:53 +01:00
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.
2020-10-25 18:52:38 +01:00
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.
2020-10-25 17:49:26 +01:00
Adriaan de Groot
2b9fa0f982
CMake: drop the NOTREACHED macro
...
- both clang and g++ support __builtin_unreachable(); (as Kevin
Kofler pointed out) so we don't need the macro to do different things;
- the compilers have gotten better at detecting unreachable code,
so instead of inserting macros or fiddly bits, just drop them
and the unreachable code they comment.
2020-10-25 12:49:49 +01:00
Adriaan de Groot
7fa1c1b787
[libcalamares] Avoid object-slice
...
g++ warns that error_already_set is polymorphic, and we're catching
by-value (although we don't use that value). Avoid that.
2020-10-25 12:49:49 +01:00
Adriaan de Groot
b28a50de6f
[libcalamares] Remove useless variable
...
- describe() is for debugging purposes, doesn't need to calculate
whether the requirements are accepted.
2020-10-24 12:35:19 +02:00
Adriaan de Groot
6c7d295712
CMake: simplify C and C++ flags
...
- reduce the difference between clang and g++ builds, factor
common flags out of the CMake-if
- drop special boost-warning-suppression, we do that differently
most of the time in the affected source files
2020-10-24 12:32:07 +02:00
Adriaan de Groot
c412e285c2
[libcalamares] Link publicly to yaml-cpp
...
Needed on FreeBSD, where you otherwise might not get the
include paths for yaml-cpp added -- and utils/Yaml.h
expects them to be there.
2020-10-23 12:01:29 +02:00
Adriaan de Groot
3313a5341d
[partitions] Adapt to KPMcore 4.2 changes
2020-10-17 14:59:01 +02:00
Adriaan de Groot
81f12cb230
[libcalamares] Do GeoIP lookups with a fake User-Agent
2020-10-16 13:55:31 +02:00
Adriaan de Groot
3b14e354b0
[libcalamares] Log more HTTP errors during requests
2020-10-16 13:07:57 +02:00
Adriaan de Groot
436e1de820
[libcalamares] Be more chatty in GeoIP test application
2020-10-16 12:36:03 +02:00
Adriaan de Groot
86fd014bbd
[libcalamares] Fallback from status -> description -> name for progress
2020-10-13 00:00:37 +02:00
Adriaan de Groot
2f83d85e29
[libcalamares] Explain process failure in debug log a bit better
2020-10-12 23:19:15 +02:00
Adriaan de Groot
a955791766
Apply coding style globally again
2020-10-12 14:27:01 +02:00
Adriaan de Groot
9ce08beead
[libcalamares] Fix build
...
- The API definitions are just the symbols to define; these
are variously added through add_definitions() (needs -D)
or target_add_definitions() (doesn't).
2020-10-07 01:15:12 +02:00
Adriaan de Groot
40aa0fcaba
CMake: add a helper module for finding KPMcore
...
I think we had this (kind of) module a long time ago and it was
removed for over-complicating things; re-introduce one now that
KPMcore is used in 3 different places and all would benefit
from consistent API handling / defines.
2020-10-07 00:11:18 +02:00
Adriaan de Groot
faa496be4a
Merge pull request #1522 from kadler15/issue-1521
...
[preservefiles] Fix global storage JSON dump
2020-10-06 21:53:32 +02:00
Adriaan de Groot
44f8a7ae47
[libcalamares] Reduce chattiness again of job progress
2020-10-06 11:03:55 +02:00
Kris Adler
e92927cff9
[preservefiles] Fix global storage JSON dump
...
fixes calamares/calamares#1521
2020-10-03 17:38:20 -05:00
Adriaan de Groot
ace6323987
[libcalamares] Be even more chatty in job progress
...
This is for debugging-job-progress reports.
2020-09-28 11:35:41 +02:00
Adriaan de Groot
75b01cfc0a
[libcalamares] Some debugging output for job progress, so you can double-check that the settings are being picked up
2020-09-23 16:14:09 +02:00
Adriaan de Groot
2878c474c5
Warnings-- (~T() override)
...
Change all the places that had
virtual ~T() override
to the less redundant form without override.
2020-09-22 22:49:30 +02:00
Adriaan de Groot
2126be6d6d
Warnings-- (~T() override)
...
Consistently use
~T() override;
in class declarations (so no virtual in front, and avoid
warnings due to the missing override in back).
2020-09-22 22:40:52 +02:00
Adriaan de Groot
8b66009d59
[libcalamares] Warnings-- in tests (~T() override)
2020-09-22 22:37:29 +02:00
Adriaan de Groot
0cffac10c6
[libcalamares] Ignore more warnings for system header YAML
2020-09-22 22:37:29 +02:00
Adriaan de Groot
fbab554dfa
[libcalamares] Remove unused parameter for PythonJob
...
- parameter instanceKey was left over from previous work that
special-cased the weight of Python modules.
- while here, consistently do `~T() override`
2020-09-22 22:35:55 +02:00
Adriaan de Groot
e0ba5a6ba2
[libcalamares] Convenience functions for localeConf GS entry
2020-09-03 20:21:37 +02:00
Adriaan de Groot
32649f78ea
[libcalamares] Restore finish() slot to job queue
...
FIXES #1507
2020-09-03 15:39:04 +02:00
Adriaan de Groot
ba2b52ed1d
Merge branch 'fix-debugwindow-queue' into calamares
...
3.2.29 dropped the Job Queue information from the debug
window, this restores the list of names.
2020-08-28 15:54:13 +02:00
Adriaan de Groot
b37a675657
[libcalamares] Reimplement JobQueue::queueChanged
...
- switch to QStringList as parameter, since consumers (that is,
the debug dialog, which is what this is for) are interested
just in the **names** of the jobs.
- to allow mutex locking in const methods, mark them mutable.
2020-08-28 14:39:32 +02:00
Adriaan de Groot
9afe7a3711
[libcalamares] Document JobQueue signals
2020-08-28 14:24:06 +02:00
Asif Mahmud Shimon
c6a3e9b816
Internet accessibility checking done by ping method
2020-08-27 11:36:55 +06:00
Adriaan de Groot
a2180936ef
CI: apply coding style across the entire codebase again
2020-08-26 02:28:43 +02:00
Adriaan de Groot
1cd9b93a22
REUSE: Giant boilerplate cleanup
...
- point to main Calamares site in the 'part of' headers instead
of to github (this is the "this file is part of Calamares"
opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
this is the 3-paragraph summary of the GPL-3.0-or-later, which has
a meaning entirely covered by the SPDX tag.
2020-08-26 02:28:38 +02:00