diff options
author | kh1 <karsten.heimrich@theqtcompany.com> | 2015-04-17 09:24:12 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-04-27 10:55:37 +0000 |
commit | 32221180df76fa79b09e6acb7c9263c15b279f44 (patch) | |
tree | 173215aa6c63ea9a262c35f16c4fecbee7c1c029 /tools | |
parent | 55eb4ba17e8729cf47449ff1f4f06ca93b837f9e (diff) |
Fix dubious warning about RequiresAdminRights tag.
The tag was added once component script is parsed and we did
know that addElevatedOperation is called from script. However,
the initial commit 7ccd0acdcf35b957e9e7d04cd81902bac362ad04 did
not append the node to the parent package update node. Now we
decided to have the option statically and declarative available,
so we can remove the warning.
Task-number: QTIFW-670
Change-Id: I8cd8f702391d7bf80fc4c42074e1fd6d2d4abc57
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/common/repositorygen.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/common/repositorygen.cpp b/tools/common/repositorygen.cpp index 1863286cf..0d1cd21fa 100644 --- a/tools/common/repositorygen.cpp +++ b/tools/common/repositorygen.cpp @@ -312,12 +312,6 @@ void QInstallerTools::copyMetaData(const QString &_targetDir, const QString &met QString::fromLatin1("Unknown error.") : value.toString())); } - // add RequiresAdminRights tag to xml if addElevatedOperation is used somewhere - if (scriptContent.contains(QLatin1String("addElevatedOperation"))) { - QDomElement element = doc.createElement(QLatin1String("RequiresAdminRights")); - element.appendChild(doc.createTextNode(QLatin1String("true"))); - } - const QString toLocation(QString::fromLatin1("%1/%2/%3").arg(targetDir, info.name, script)); copyWithException(scriptFile.fileName(), toLocation, QInstaller::scScript); } |