From 32221180df76fa79b09e6acb7c9263c15b279f44 Mon Sep 17 00:00:00 2001 From: kh1 Date: Fri, 17 Apr 2015 09:24:12 +0200 Subject: 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 --- tools/common/repositorygen.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tools') 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); } -- cgit v1.2.3