diff options
author | kh1 <karsten.heimrich@nokia.com> | 2012-04-26 17:31:50 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-04-27 11:42:40 +0200 |
commit | 17939d4a28cfc1fcec00894c09ca5d7a78731ce0 (patch) | |
tree | ea4c04790521da719d3cf859d5ef000b54291639 | |
parent | b6f1ee5ff8e6bbde3ffa43fe704d67264ad54679 (diff) |
Fix formatting and indention.
Change-Id: I37d4d26ca68de83a6651fe6b8119830ea282fa1d
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
-rw-r--r-- | src/libs/installer/getrepositorymetainfojob.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libs/installer/getrepositorymetainfojob.cpp b/src/libs/installer/getrepositorymetainfojob.cpp index 27c1d5618..ac575ab18 100644 --- a/src/libs/installer/getrepositorymetainfojob.cpp +++ b/src/libs/installer/getrepositorymetainfojob.cpp @@ -208,15 +208,12 @@ void GetRepositoryMetaInfoJob::startUpdatesXmlDownload() return; } - QString UpdatesFileName; - + QString updatesFileName = QString::fromLatin1("Updates.xml"); if (m_retriesLeft == m_silentRetries) - UpdatesFileName = QString::fromLatin1("Updates_%1.xml").arg(QLocale().name().toLower()); - else - UpdatesFileName = QString::fromLatin1("Updates.xml"); + updatesFileName = QString::fromLatin1("Updates_%1.xml").arg(QLocale().name().toLower()); // append a random string to avoid proxy caches - m_downloader->setUrl(QUrl(url.toString() + QString::fromLatin1("/%1?").arg(UpdatesFileName) + m_downloader->setUrl(QUrl(url.toString() + QString::fromLatin1("/%1?").arg(updatesFileName) .append(QString::number(qrand() * qrand())))); QAuthenticator auth; @@ -419,7 +416,7 @@ void GetRepositoryMetaInfoJob::fetchNextMetaInfo() const QString repoUrl = m_repository.url().toString(); const QUrl url = QString::fromLatin1("%1/%2/%3meta.7z").arg(repoUrl, next, online ? nextVersion : QString()); - m_downloader = FileDownloaderFactory::instance().create(url.scheme(), this); + m_downloader = FileDownloaderFactory::instance().create(url.scheme(), this); if (!m_downloader) { m_currentPackageName.clear(); |