summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/packagemanagercore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'installerbuilder/libinstaller/packagemanagercore.cpp')
-rw-r--r--installerbuilder/libinstaller/packagemanagercore.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/installerbuilder/libinstaller/packagemanagercore.cpp b/installerbuilder/libinstaller/packagemanagercore.cpp
index 88c5becab..4e836d468 100644
--- a/installerbuilder/libinstaller/packagemanagercore.cpp
+++ b/installerbuilder/libinstaller/packagemanagercore.cpp
@@ -1464,8 +1464,12 @@ bool PackageManagerCore::updateComponentData(struct Data &data, Component *compo
lastLocalPath = localPath;
}
- if (d->m_repoMetaInfoJob)
- component->setRepositoryUrl(d->m_repoMetaInfoJob->repositoryForTemporaryDirectory(localPath).url());
+ if (d->m_repoMetaInfoJob) {
+ const Repository &repo = d->m_repoMetaInfoJob->repositoryForTemporaryDirectory(localPath);
+ component->setRepositoryUrl(repo.url());
+ component->setValue(QLatin1String("username"), repo.username());
+ component->setValue(QLatin1String("password"), repo.password());
+ }
// add downloadable archive from xml
const QStringList downloadableArchives = data.package->data(scDownloadableArchives).toString()