summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase/installerbase.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2011-06-08 12:03:17 +0200
committerkh1 <qt-info@nokia.com>2011-06-08 12:03:17 +0200
commit23cb0b82ab14530a8798abcf0f643a139590f31a (patch)
tree94edefc9c4ad10440f5eba844a4c40bbbedc79d5 /installerbuilder/installerbase/installerbase.cpp
parent826e263f06d37514e38b3cf1d872a85e28cb4a61 (diff)
Only in case we run the installer use metadata as source.
Diffstat (limited to 'installerbuilder/installerbase/installerbase.cpp')
-rw-r--r--installerbuilder/installerbase/installerbase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/installerbuilder/installerbase/installerbase.cpp b/installerbuilder/installerbase/installerbase.cpp
index 72569990e..1611cebe8 100644
--- a/installerbuilder/installerbase/installerbase.cpp
+++ b/installerbuilder/installerbase/installerbase.cpp
@@ -271,8 +271,10 @@ int main(int argc, char *argv[])
updaterapp.packagesInfo()->setApplicationName(productName);
updaterapp.packagesInfo()->setApplicationVersion(installer
.value(QLatin1String("ProductVersion")));
- updaterapp.addUpdateSource(productName, productName, QString(),
- QUrl(QLatin1String("resource://metadata/")), 0);
+ if (content.magicmaker() == MagicInstallerMarker) {
+ updaterapp.addUpdateSource(productName, productName, QString(),
+ QUrl(QLatin1String("resource://metadata/")), 0);
+ }
installer.setUpdaterApplication(&updaterapp);
// Create the wizard gui