summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagesource.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2023-09-26 17:11:10 +0300
committerKatja Marttila <katja.marttila@qt.io>2023-10-16 13:52:12 +0300
commitb09ef64c72192569bad97484a77434e9a015e2e1 (patch)
treeeac5bfad7f25524017077d9e303996cdd7341cef /src/libs/installer/packagesource.h
parente8c4492693328568a1512303834e318aa1c1ea28 (diff)
Enable component script postload setting per repository
This is a custom requirement for Qt Online Installer. Qt Online Installer has a huge amount of scripts to be evaluated. Most of the scripts don't need an evaluation unless those are installed. Skipping the evaluation of scripts has quite significant performance impact. As the postLoad setting in component level is a big task, enabling support for Qt Online Installer to set the postLoad value to scripts per repository. Task-number: QTIFW-3173 Change-Id: If37d7ff39ad07ee56e9a9559c837966c23d76d6e Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/packagesource.h')
-rw-r--r--src/libs/installer/packagesource.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/installer/packagesource.h b/src/libs/installer/packagesource.h
index 92245d906..f63b53cd8 100644
--- a/src/libs/installer/packagesource.h
+++ b/src/libs/installer/packagesource.h
@@ -40,13 +40,15 @@ struct INSTALLER_EXPORT PackageSource
PackageSource()
: priority(-1)
{}
- PackageSource(const QUrl &u, int p)
+ PackageSource(const QUrl &u, int p, bool pl = false)
: url(u)
, priority(p)
+ , postLoadComponentScript(pl)
{}
QUrl url;
int priority;
+ bool postLoadComponentScript;
};
INSTALLER_EXPORT hashValue qHash(const PackageSource &key, hashValue seed);