Adriaan de Groot
1a5c916923
[netinstall] Implement local
loading of packages
...
- For a static list of selectable packages (e.g. what you might otherwise
use file:/// for with a static file on the ISO) you can now stick the
list in the config file itself, simplifying some setups.
- Also saves faffing about with network.
SEE #1319
2020-03-24 11:35:58 +01:00
Adriaan de Groot
4cb2ed9552
[netinstall] Chase removal of ItemData
...
- Simplify creation of PackageTreeItems by interpreting the
YAML directly (instead of via ItemData),
- Simplify list types,
- Drop superfluous API.
2020-03-23 17:18:44 +01:00
Adriaan de Groot
8825c9c995
[netinstall] Apply coding style
2020-03-23 17:18:44 +01:00
Adriaan de Groot
e2d9ce737c
[netinstall] Implement pre-expanded groups
...
- Return relevant data
- Document code
- Add to README.md documentation about new key
2020-03-10 12:59:41 -05:00
Adriaan de Groot
09006a936d
[netinstall] Expand groups if requested
2020-03-10 12:37:57 -05:00
Adriaan de Groot
201c5ddfe1
[netinstall] Add some debug-logging
...
- Also, prepare for a start-expanded setting
2020-03-09 22:44:16 -05:00
Adriaan de Groot
c20f7ee534
[netinstall] Rip out derpy translations of PackageModel
...
- The model always has two columns, and the column names are always
the same. We don't need to specially set headers for that.
- Use QCoreApplication::translation() to re-use the existing
translations and avoid creating "new" strings (in a new context).
2020-02-19 12:51:01 +01:00
Adriaan de Groot
f6d8ed85e4
[netinstall] Allow a title above the netinstall tree
...
- Supports translation via the config file. This is useful
(like label:sidebar) when displaying more than one netinstall page.
2020-02-19 09:29:23 +01:00
Adriaan de Groot
497ecda14d
[netinstall] Move translation of widget headers
...
Editorial: I really don't like plain CALAMARES_RETRANSLATE() thrown
into the middle of code.
2020-02-18 23:17:18 +01:00
Adriaan de Groot
0877a994f1
[netinstall] Update copyright
2020-02-18 17:40:15 +01:00
Adriaan de Groot
bc5aa1f837
[netinstall] Pretend to clean up resources
2020-02-18 17:37:16 +01:00
Adriaan de Groot
9850e4b35b
[netinstall] Use the network-manager
...
- use asynchronousGet and keep the reply
- drop unused includes
- apply current coding style
2019-09-02 14:10:36 +02:00
Adriaan de Groot
bedff6b252
[netinstall] Log immediate failures
...
- If the request is immediately bad (e.g. because of a botched
url) then log that fact; in this case no finished() is ever
emitted.
2019-08-01 15:17:24 +02:00
Adriaan de Groot
82055f6854
[netinstall] Logging; code duplication
...
- If there was an error, the network reply was never deleted
- Improve logging to show where data is coming from
2019-08-01 14:31:25 +02:00
Adriaan de Groot
f076dd76ad
[libcalamares] Rename YamlUtils.h
...
- Since we have the utils/ filesystem namespace, and use CalamaresUtils::
as C++ namespace, simplify naming.
2019-04-29 06:14:21 -04:00
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.
2019-04-18 12:06:09 +02:00
Adriaan de Groot
520478847c
Make logging more consistent.
...
- Across all the C++ modules, use Logger::SubEntry for sub/continues
log lines, instead of somewhat-random indent strings.
2019-04-15 09:02:21 -04: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
6aa5be192b
[netinstall] Drop unused includes
2018-05-22 11:43:14 -04:00
Adriaan de Groot
ba85fc760a
[netinstall] Remove data-indirection
...
- There is no need to move data around between two parts of the
same module via global storage.
2018-05-21 10:58:57 -04:00
Adriaan de Groot
3315df5df1
[modules] Use new convenience logging methods across the board
2018-02-13 11:07:12 +01:00
Gabriel Craciunescu
d1c10837d1
[netinstall]: some more debug
...
- change the debug output when the errors occurs so
we have a clue what may go wrong
2017-11-06 19:46:26 +01:00
Adriaan de Groot
62c03d6857
Merge branch '3.1.x-stable'
2017-11-06 05:43:29 -05:00
Adriaan de Groot
51c74c6abb
[netinstall] Convenience typedefs
2017-11-06 05:42:13 -05:00
Adriaan de Groot
91e949f8fc
[netinstall] Apply Calamares C++ style
2017-11-06 05:34:57 -05:00
Adriaan de Groot
f424af36d3
[netinstall] Avoid crash when do groups are available
...
- m_groups is only set to a non-nullptr value when data is received
and fully processed,
- avoid nullptr dereference when paging *back* from a netinstall
page that hasn't loaded groups data.
FIXES #859
2017-11-06 05:33:01 -05:00
Adriaan de Groot
ee0b3b85dc
[netinstall] Improve 'next' button handling
...
- Document netinstall.conf a little,
- Add setting *required* which influences whether next is enabled or not
in case of missing or corrupt data,
- Enable *next* button only once some (any!) data is received.
This can be used to disallow stepping past the netinstall step when
there is no data (e.g. internet has failed between the welcome page
and the netinstall page).
2017-11-06 05:33:01 -05:00
Adriaan de Groot
b303acf12a
Merge branch '3.1.x-stable'
...
- KPMCore code moved
- Small fixes
2017-10-31 06:44:14 -04:00
Gabriel Craciunescu
d2ea83a0b2
NetInstallPage.cpp: fix displaying for Name and Description
...
- fixes 1d7ad9e045
which sets
both header's labels to 0 so 'Name' was always overridden
by Description and Description never displayed
2017-10-28 02:18:36 +02:00
Adriaan de Groot
36a711c87f
Netinstall: fix misleading message (thanks to @abucodonosor)
2017-10-23 11:52:11 -04:00
Adriaan de Groot
7e25909e18
YAML: refactor YAML-exception reporting
...
- both NetInstall (group data) and Locale (GeoIP) use network
data returned as a source of YAML data. Try to explain
parsing errors for both.
FIXES #786
2017-09-06 07:51:22 -04:00
Adriaan de Groot
09decf8e06
YAML-NetInstall: log data errors.
...
When NetInstall receives YAML data, handle parser errors more gracefully:
show line and column, but because it's network data (not in a local file),
do some work to print out the actual data received.
FIXES #786
2017-09-06 05:47:11 -04:00
Adriaan de Groot
8ea14d7957
Release: add copyright to files I've touched
2017-06-21 08:27:10 -04:00
Adriaan de Groot
ce6997d214
Coverity: fix some uninitialized members
2017-06-17 15:14:02 -04:00
Kyle Robertze
1d7ad9e045
made requested changes
2017-02-07 17:10:48 +01:00
Kyle Robertze
f5fe887a79
fixed style issues
2017-02-07 17:10:48 +01:00
Kyle Robertze
a4aef3bce5
moved netinstall to a tree based ui
2017-02-07 17:10:48 +01:00
shainer
58ae8e13c9
Add support for non-critical groups in netinstall.
...
Package groups are divided into critical and non-critical
depending on whether we want all Calamares to fail if installing
a package in the group fails, or we are okay with just logging a
warning.
The distinction is configured in the YAML file listing the package
groups. By default, all groups are critical, to keep supporting
the previous behaviour.
2016-11-12 17:57:58 +00:00
Kevin Kofler
075577d948
[netinstall] Support selecting visible groups by default.
...
In other words, support:
hidden: false
selected: true
groups.
This was supposed to work according to README.md, but not actually
implemented. Now it should be working.
2016-11-02 05:58:00 +01:00
shainer
5e2ed69629
Set a descriptive User Agent for requests, so sourceforge.net does not complain.
2016-07-15 14:02:14 +01:00
shainer
e462c3c8d8
Use QNetworkAccessManager instead of KIO to download the config; remove KIO dep.
2016-07-15 13:27:10 +01:00
shainer
f84da1e013
Fix build failure seen in the live test.
2016-07-02 23:54:32 +01:00
shainer
f2658f5eb0
Left commented code in previous commit, switch to cDebug().
2016-06-30 23:00:03 +01:00
shainer
aa54d82d85
Last connect() conversion in the module.
2016-06-30 22:59:29 +01:00
shainer
afedf9e024
Switch two connects to Qt5 style.
2016-06-30 22:27:37 +01:00
shainer
877eb71886
Use utils from the YamlUtils package to read nodes more elegantly.
2016-06-27 23:23:10 +01:00
shainer
b043b42795
Add copyright statements when missing, make them all the same.
2016-06-27 23:00:47 +01:00
shainer
a5cc9f2a9d
Netinstall module. See README for complete guide. Allows to configure groups and packages; selected packages are installed through the 'packages' module.
2016-06-25 23:26:08 +01:00