Adriaan de Groot
63b0589382
CI: apply style tool across the entire codebase
2023-10-17 22:24:46 +02:00
Adriaan de Groot
1efb12e332
libcalamares: rename CalamaresUtilsSystem and Gui
2023-09-11 20:40:10 +02:00
Adriaan de Groot
eb840d4117
libcalamares: ditch namespace CalamaresUtils
...
- Most CalamaresUtils things go to Calamares
- YAML support to Calamares::YAML and then remove redundant "yaml"
from the function names.
2023-09-11 20:34:01 +02:00
Adriaan de Groot
f4e3964ee5
libcalamares: use namespace Calamares::Partition consistently
2023-09-11 00:09:31 +02:00
Adriaan de Groot
47cbcbd348
libcalamares: move all locale-related things into namespace Calamares::Locale
...
The locale bits were spread over Calamares::Locale and CalamaresUtils::Locale.
2023-09-10 22:26:32 +02:00
Adriaan de Groot
3a0b75a006
Merge branch '3.2.x-stable' into calamares
2022-06-19 16:05:17 +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
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
576f244d2d
*: Chase new namespace Calamares::String
2022-04-12 14:15:52 +02:00
Adriaan de Groot
932ab17c9a
[libcalamares] Avoid parameter name 'stdin'
2022-02-07 12:54:16 +01:00
Adriaan de Groot
ebdcb15703
[libcalamares] Don't use reserved identifiers
2022-02-07 12:51:22 +01:00
Adriaan de Groot
65488ca174
[libcalamares] More verbose when loading YAML for Python
2021-11-29 14:19:06 +01:00
Adriaan de Groot
fcbe8d3a3e
[libcalamares] API for YAML-loading from Python
2021-11-29 12:59:30 +01:00
Adriaan de Groot
e9970474f5
[libcalamares] Allow Python to log an Error as well
2021-11-29 12:22:02 +01:00
Adriaan de Groot
2800128a8d
[libcalamares] Expand the output-processing API
...
- support host and target runs
- add stdin and timeout values
- allow automatic output to list
2021-11-03 13:45:15 +01:00
Adriaan de Groot
3120abbce8
[libcalamares] Introduce host_env_process_output, too
...
- run commands consistently, with optional output-processing,
in host or target;
- raises exception on error, like the check_* functions.
2021-11-03 12:23:39 +01:00
Adriaan de Groot
f2142bc4b3
[libcalamares] Move Python callback to utils submodule
...
- don't need the job to do the callback
- allow callable objects from Python
- doesn't actually run the process yet
2021-11-03 11:53:44 +01:00
Adriaan de Groot
e0fdde06c9
[libcalamares] Python API for callbacks from processes
...
This is an experiment in Python API that will allow a callback
function in the Python module to be called for each output line.
It builds on the run-a-process extensions that are being built
simultaneously.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
8f65a644a9
[libcalamares] Rename cPointerSetter
...
This class doesn't really set a pointer -- it is a scoped assignment
through a pointer, which **can** set a value on destruction (when
it leaves scope). Rename it.
While here, extend the API so that it can do an assignment to the
underlying object **now**, while also doing a scoped assignment
later when it leaves scope. This makes some code a bit easier
to read ("in this scope, X is now <v> and then it becomes <v'>")
2021-09-22 11:29:52 +02:00
Adriaan de Groot
b0149c2712
[libcalamares] Log the Python language-search process just once
...
- log the list of search paths once
- log the found-language as if from Python
- warn always if none are found
2021-09-22 11:29:52 +02:00
Adriaan de Groot
3596b48c7a
[libcalamares] Factor out common string in Python logging
...
- enforce consistent [PYTHON JOB]
- use CDebug() constructor, because the convenience macro's
introduce the function name -- that's the C++ function, so
it isn't useful for logging.
2021-07-28 13:13:39 +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
Callum Farmer
0c4dc71d5c
[libcalamares] Update SPDX identifiers.
...
Update CppJob.h
Update CalamaresConfig.h.in
Update DllMacro.h
Update GlobalStorage.cpp
Update GlobalStorage.h
Update Job.cpp
Update Job.h
Update JobExample.cpp
Update JobExample.h
Update JobQueue.cpp
Update CalamaresConfig.h.in
Update CppJob.cpp
Update CppJob.h
Update DllMacro.h
Update GlobalStorage.cpp
Update GlobalStorage.h
Update Job.cpp
Update Job.h
Update JobExample.cpp
Update JobExample.h
Update JobQueue.h
Update ProcessJob.cpp
Update ProcessJob.h
Update PythonHelper.cpp
Update PythonJob.cpp
Update PythonJob.h
Update PythonHelper.h
Update PythonJobApi.cpp
Update PythonJobApi.h
Update Settings.cpp
Update Settings.h
Update GeoIPJSON.cpp
Update GeoIPJSON.h
Update GeoIPTests.cpp
Update GeoIPTests.h
Update GeoIPXML.cpp
Update GeoIPXML.h
Update Handler.cpp
Update Handler.h
Update Interface.cpp
Update Interface.h
Update test_geoip.cpp
Update CountryData_p.cpp
Update Label.cpp
Update Label.h
Update LabelModel.cpp
Update LabelModel.h
Update CountryData_p.cpp
Update CountryData_p.cpp
Update Lookup.cpp
Update Lookup.h
Update Tests.cpp
Update Tests.h
Update TimeZone.cpp
Update TimeZone.h
Update TranslatableConfiguration.cpp
Update TranslatableConfiguration.h
Update ZoneData_p.cxxtr
Update cldr-extractor.py
Update zone-extractor.py
Update Actions.h
Update Actions.h
Update Descriptor.h
Update InstanceKey.cpp
Update Module.cpp
Update Module.h
Update Requirement.cpp
Update RequirementsChecker.h
Update RequirementsModel.cpp
Update RequirementsModel.h
Update Tests.cpp
Update Manager.cpp
Update Manager.h
Update Tests.cpp
Update FileSystem.cpp
Update FileSystem.h
Update KPMManager.cpp
Update KPMManager.h
Update KPMTests.cpp
Update FileSystem.cpp
Update FileSystem.cpp
Update FileSystem.h
Update KPMManager.cpp
Update KPMManager.h
Update Mount.cpp
Update Mount.h
Update PartitionIterator.cpp
Update PartitionIterator.h
Update PartitionIterator.h
Update PartitionQuery.cpp
Update PartitionQuery.h
Update PartitionSize.cpp
Update PartitionSize.h
Update Sync.cpp
Update Sync.h
Update Tests.cpp
Update Tests.h
Update BoostPython.h
Update CalamaresUtilsSystem.cpp
Update CalamaresUtilsSystem.h
Update CommandList.cpp
Update CommandList.h
Update Dirs.cpp
Update Dirs.h
Update Entropy.cpp
Update Entropy.h
Update Entropy.cpp
Update Logger.cpp
Update Logger.h
Update NamedEnum.h
Update NamedSuffix.h
Update PluginFactory.cpp
Update PluginFactory.h
Update RAII.h
Update RAII.h
Update Retranslator.cpp
Update Retranslator.h
Update String.cpp
Update String.h
Update TestPaths.cpp
Update Tests.cpp
Update Tests.h
Update UMask.cpp
Update UMask.h
Update Units.h
Update Variant.cpp
Update Variant.h
Update Yaml.cpp
Update Yaml.h
Update moc-warnings.h
2020-06-03 12:52:53 +01:00
Adriaan de Groot
d8ecd302e1
[libcalamares] Apply coding style
...
- minor space issues
- drop a blank line after moc-warnings.h to avoid if being sorted
downwards, after the MOC file it's protecting
2020-03-31 23:19:51 +02:00
Adriaan de Groot
6d29c19e3e
[libcalamares] Progress is float
2020-03-04 21:40:40 -05:00
Adriaan de Groot
b0abb99ee1
[libcalamares] Don't log useless FUNC_INFO for Python
...
- When a Python module calls utils.debug(), there's no point
in logging the C++ funcinfo that passes the parameters on;
don't use cDebug() with its attendant magic.
2020-02-27 13:24:23 +01:00
Adriaan de Groot
e72ecaafd3
Merge branch 'kpmcore-manager'
...
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
2020-02-13 13:41:53 +01:00
Adriaan de Groot
c1151cbcfa
[libcalamares] Update copyright info
2020-02-12 12:08:46 +01:00
Adriaan de Groot
95722541d0
[libcalamares] Untangle Python includes
...
- Use BoostPython.h to manage overall includes
- Remove local home-grown variations
2020-02-12 11:02:38 +01:00
Adriaan de Groot
f6d89354a1
Merge branch 'master' into kpmcore-manager
2020-01-10 14:54:13 +01:00
Adriaan de Groot
ac75c63001
[libcalamares] Reduce warnings with Clang 9 (Boost::Python)
...
- The boost headers fall foul of tons of Clang warnings, so introduce
a mechanism like moc-headers for turning off most of those warnings.
2019-11-29 00:17:02 +01:00
Adriaan de Groot
1afa9c4d08
[libcalamares] Apply current coding style to all of libcalamares/
2019-08-04 22:24:55 +02:00
Adriaan de Groot
cac07c1472
[libcalamares] Use std::chrono::seconds for timeouts
...
- Distinguish just-an-int from seconds all across the API
2019-08-01 22:47:42 +02:00
Adriaan de Groot
d08325d3d0
[libcalamares] Move mount to the partition service
...
- Move mount() out of CalamaresUtils::System and into
the partitioning service.
- Adjust PythonJobApi (only consumer of that service).
2019-06-20 11:35:46 +02:00
Adriaan de Groot
8d0f076591
[libcalamares] Rename CalamaresUtils -> String
...
- The only remaining functions in the file are string-related, so
rename to match their purpose.
- Drop this include file from most places, since they don't actually
use the string functionality at all.
2019-04-29 06:49:16 -04:00
Adriaan de Groot
aaeea16871
[libcalamares] Make logging more consistent
2019-04-15 09:02:21 -04:00
Adriaan de Groot
aebe67fde7
[libcalamares] Improve debug message while looking for gettext
2019-01-25 09:43:16 -05:00
Adriaan de Groot
527392f0af
[libcalamares] Update Copyright statement
2019-01-08 22:29:55 +01:00
Adriaan de Groot
093240c131
[libcalamares] Be less chatty in Python scripts
...
- When finding the gettext path, the debug output was very
chatty and didn't include an indication that it was looking
for translations.
2019-01-08 10:51:53 +01:00
Adriaan de Groot
dd8e53dc22
Copyright: update copyright lines on files touched in 2018
...
Contributions from:
Adriaan de Groot <groot@kde.org>
Gabriel Craciunescu <crazy@frugalware.org>
AlmAck <gluca86@gmail.com>
Andrius Štikonas <andrius@stikonas.eu>
Caio Carvalho <caiojcarvalho@gmail.com>
Raul Rodrigo Segura <raurodse@gmail.com>
2018-06-15 05:59:11 -04:00
Adriaan de Groot
84d599625f
[libcalamares] Give Python jobs a warning()
...
- Add libcalamares.utils.warning() alongside debug() for
Python modules to output warnings.
2018-02-20 04:28:45 -05:00
Adriaan de Groot
762ad54344
Documentation: change http links to GitHub to https
2017-12-20 08:39:09 -05:00
Adriaan de Groot
a0a8ab0048
[libcalamares] Refactor Python target_env calls
...
This is why the whole refactoring started: to get the process output
and exit code in one spot so we can attach the process output
to the (Python exception) CalledProcessError in all the code
paths, not just those that are explicitly looking for output.
2017-11-28 10:55:53 -05:00
Adriaan de Groot
6693d91152
[libcalamares] Refactor bp:list -> QStringList
2017-11-28 10:42:00 -05:00
Adriaan de Groot
f5aec1ad8a
[libcalamares] Add output to CalledProcessError
...
- Refactor, internal _handle_check_target_env_call_error doesn't need
to be in header or visible.
- Add optional output (of the command) to the Python exception.
2017-11-28 08:53:40 -05:00
Adriaan de Groot
5dc70ac261
Python-i18n: apply C++-coding style
2017-08-21 12:36:04 -04:00
Adriaan de Groot
538c59adb9
Python-i18n: add /usr/local/share/locale to search
2017-08-21 12:34:38 -04:00
Adriaan de Groot
22fd428664
Python-i18: avoid duplicate path entries
2017-08-18 14:22:59 -04:00
Adriaan de Groot
3a1d5ed533
Python-i18n: (inefficiently) search for suitable gettext dirs
2017-08-18 13:06:44 -04:00
Adriaan de Groot
78b3c8ed32
Python-i18n: allow None as a gettext path (searches default)
2017-08-16 16:45:34 +02:00