summaryrefslogtreecommitdiff
path: root/src/application-lib/packagedatabase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add explicit include for std::abortBernd Weimer2022-08-121-0/+1
| | | | | | Change-Id: Ia71cf0b596b4e90d38fba0ca5d1c6134e96e721f Pick-to: 5.15 6.4 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix QScopedPointer::take deprecation warningRobert Griebl2022-06-151-1/+0
| | | | | | | | Also replaced the remaining usages of QScopedPointer with std::unique_ptr for consistency. Change-Id: Ic63d1b3ea03a4562e4e40c3e9c7992459fde716e Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Use SPDX license identifiersDominik Holland2022-06-151-29/+3
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I09660e42dea769d720ff30e652485d9861cea965 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix QScopedPointer::take deprecation warningMÃ¥rten Nordheim2022-03-241-8/+9
| | | | | | | | | By switching to unique_ptr. Fixes: QTBUG-101999 Pick-to: 6.3 Change-Id: I39959da8561991b1657d1210692afff0c25e36a1 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Additional debug output to help with trouble shootingRobert Griebl2022-03-171-1/+4
| | | | | | | Change-Id: I14168cdf2674affc5faaf5840485bc07aa824b12 Pick-to: 6.3 Reviewed-by: Dominik Holland <dominik.holland@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Delay loading packages until a specified partition is mountedRobert Griebl2022-02-021-37/+124
| | | | | | | | | | This adds a new config option applications/installationDirMountPoint. If set, package database loading will be delayed until the specified mount point has been mounted. Change-Id: Icf43128031438f62ba4d0c401bb84bdd2d42701e Pick-to: 5.15 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Update copyright headers to 2021 an finally switch to the GPLRobert Griebl2021-06-011-25/+13
| | | | | | | | | Also removed all the SPDX tags and -QTAS license extensions. Change-Id: Ibd10fe37afcbba832831d027cf2f1891ca0226c0 Fixes: AUTOSUITE-1648 Fixes: AUTOSUITE-1646 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Ignore unparseable info.yaml manifest fileRobert Griebl2021-04-231-3/+9
| | | | | | | | | | Otherwise a broken 3rd party manifest could prevent the startup of the system-ui. This is a regression that was introduced when we implemented the caching mechanism for manifests. Change-Id: I723a2fa741afff95fbe7f54b46cbed61ecc5b37e Pick-to: 5.15 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Disallow implicit ASCII castsBernd Weimer2020-09-171-1/+1
| | | | | | | Disallow implicit C string to QString conversion, except in tests. Change-Id: I0d1477784eede11a54544c28b338fe7ecd42ef02 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Implement cache typing and versioningRobert Griebl2020-05-271-1/+2
| | | | | | | | | | | | While the new cache architecture has a type and version field for the global header, I totally forgot to add the same thing to mark the type and version of the actual cached data. There was a version field for Package/Intent/ApplicationInfo, but this was badly implemented and could crash the system trying to load an incompatible cache file, because the version check was done too late. Change-Id: I755cc5101213b60996541ea7e872e3017550ec37 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Mark methods with deployment warnings deprecatedBernd Weimer2020-01-311-2/+0
| | | | | | | | Marked methods in public API deprecated, instead of simply removing those for a smother transition. Also removed all internal occurrences. Change-Id: I21e36697486d5e5a077d8d52dd998ab42d17a146 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fully transparent and generic cache for config and app databaseRobert Griebl2019-11-071-50/+78
| | | | | | | | | | The existing caching mechanism for config files was abstracted and extended, so that it could be re-used to parse and cache the info.yaml files. This results in a much more robust application database and should get rid of 99.9% of all the -r/--recreate-database option usages. Change-Id: Ic37fcd3b0e55d481712d469b6e331b9c433a9c5d Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Add new package abstraction, part 2Robert Griebl2019-10-281-30/+38
| | | | | | | | | | | | The first commit in this series was b4aee167d3bc6b9f64229317fbc428b3f3b83c0d. This update fixes all the known bugs introduced in the change of the architecture, adds basic documentation and examples. The changes in the intent sub-system are in a separate patch for easier review, although they both depend on each other due to changes in the API. Change-Id: Ia78da7e10e2eb7adfa30625554af275453065a90 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Rename from Luxoft AM to Qt AMRobert Griebl2019-08-051-1/+1
| | | | | | Change-Id: I84bbd9e7f735ed1864804a9887d3a02b7c925e53 Reviewed-by: Vladimir Minenko <vladimir.minenko@pelagicore.com> Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Remove support for multiple installation locationsRobert Griebl2019-08-021-7/+13
| | | | | | | | | | | We had removed support for SD-Card (removable location) installations in a previous patch. Supporting multiple non-removable locations adds a lot of complexity to the AM's installer that isn't really needed, since modern Linux kernels can support these niche use-cases much more transparently through the device mapper/lvm infrastructure. Change-Id: Iaf10d2eb28b9d61e54c5268bcbdd623005b8508d Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add new package abstraction, which allows multiple executables per packageRobert Griebl2019-08-011-0/+215
This is part 1 which is missing doc updates and missing the update-builtin- applications functionality. Both will be added in a follow-up commit. Change-Id: I2b493cfb7585143962067674690b02cc132ef78b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>