diff options
author | Katja Marttila <katja.marttila@qt.io> | 2016-09-20 14:45:24 +0300 |
---|---|---|
committer | Iikka Eklund <iikka.eklund@qt.io> | 2016-11-09 07:08:48 +0000 |
commit | e7f93217182233383851a25ae21bd950d05b408a (patch) | |
tree | 978adb275ec5b3f52a93a610ef5d50d27c6a2479 /src/libs/installer/packagemanagercore.h | |
parent | 6e5ef08718b7b638b57dda4ef4a7bdbfe8046743 (diff) |
allow installing compressed packages
This change introduces new feature to add 7z packages to be
installed. Packages must be installer repositories (created with repogen),
compressed to 7z file and named as qtbsp or 7z. Selecting compressed package
is done either with button in component selection page or with
--installCompressedRepository parameter given to installer or to maintenancetool.
Button will not be created by default. If you want to show the button
either build IFW with DEFINES+=INSTALLCOMPRESSED or enable the button in control
script with allowCompressedRepositoryInstall() in ComponentSelectionPageCallback
Task-number: QTIFW-886
Change-Id: Ia060092c348991d5195393b7dc154205f8bf92a5
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore.h')
-rw-r--r-- | src/libs/installer/packagemanagercore.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libs/installer/packagemanagercore.h b/src/libs/installer/packagemanagercore.h index eebc33c4b..6b2a42ace 100644 --- a/src/libs/installer/packagemanagercore.h +++ b/src/libs/installer/packagemanagercore.h @@ -127,6 +127,7 @@ public: PackagesList remotePackages(); bool fetchRemotePackagesTree(); + bool fetchCompressedPackagesTree(); bool run(); void reset(const QHash<QString, QString> ¶ms); @@ -181,8 +182,8 @@ public: void setTestChecksum(bool test); Q_INVOKABLE void addUserRepositories(const QStringList &repositories); - Q_INVOKABLE void setTemporaryRepositories(const QStringList &repositories, bool replace = false); - + Q_INVOKABLE void setTemporaryRepositories(const QStringList &repositories, + bool replace = false, bool compressed = false); Q_INVOKABLE void autoAcceptMessageBoxes(); Q_INVOKABLE void autoRejectMessageBoxes(); Q_INVOKABLE void setMessageBoxAutomaticAnswer(const QString &identifier, int button); @@ -340,6 +341,8 @@ private: ComponentModel *componentModel(PackageManagerCore *core, const QString &objectName) const; QList<Component *> componentsMarkedForInstallation() const; + bool fetchPackagesTree(const PackagesList &packages, const LocalPackagesHash installedPackages); + private: PackageManagerCorePrivate *const d; friend class PackageManagerCorePrivate; |