summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Do not fail to install or update if repository is missing2.0.5Katja Marttila2017-02-212-3/+12
| | | | | | | | | | | | | | If repository address becomes invalid or is deleted from the server, update or install fails if installer points to a removed repository. However, Updates.xml might have RepositoryUpdate with action 'remove'. If we prevent updating when one of the repositories is not found we never get to perform the 'remove' action to repository which makes the whole 'remove' action unusable. This commit changes the behavior so that warning is printed when repository is not found but it does not prevent the install or update if there are other valid repositories. Change-Id: Ic75b2e09542e304e09af87c7039798120f58d844 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* License header update to GPL-EXCEPTKatja Marttila2017-01-26376-7057/+5412
| | | | | Change-Id: I6426c4e8f932cf26c6c638dec18d0c12e22972d1 Reviewed-by: Janne Anttila <janne.anttila@theqtcompany.com>
* Prepare 2.0.5 releaseIikka Eklund2017-01-175-8/+13
| | | | | | | Changelog update. Change-Id: I3afdc34ea66926827656a4eac8f7582fbd562056 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix hang in Windows when admin rights neededKatja Marttila2016-12-221-0/+2
| | | | | | | Change-Id: I07f22c9452deae7a044ac186c8d1953df00df43c Task-number: QTIFW-902 Reviewed-by: SIGMA Surface Science Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Use deterministic sorting order for componentsJake Petroules2016-11-281-2/+10
| | | | | | | | | Some components have an equal sorting priority. Therefore, we use the display name to disambiguate to avoid a "random" sorting order. Task-number: QTIFW-833 Change-Id: Ie0fea8cf6f251a1a712aca5ed53ed3c6f7cd9877 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Documentation fixesKonstantin Podsvirov2016-11-091-13/+15
| | | | | | | | Corrects inaccuracies on the ifw-updates.html page. Change-Id: I874edf6b23b68b6db5eb6581340e814e3d878d42 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Konstantin Podsvirov <konstantin@podsvirov.pro>
* Resolve relative URLs from Updates.xmlKonstantin Podsvirov2016-11-082-6/+51
| | | | | | | | | | This change allows you to use relative URLs to update repositories. Absolute addresses are resolved relative to the current Updates.xml file is parsed. Documentation added to ifw-updates.html page. Change-Id: I025bdc3044d1ca9d6abcce3ccdc043d5f03667fc Reviewed-by: Konstantin Podsvirov <konstantin@podsvirov.pro> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Prepare 2.0.4 releaseIikka Eklund2016-10-135-8/+17
| | | | | | | Update version number and ChangeLog. Change-Id: I9b6e8f9576d74002577c8c913ae61c2b577ab0ff Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Set also display name for Repository action "remove"Iikka Eklund2016-10-131-0/+1
| | | | | | | | | | | | | We should use the display name parameter if given when using action: <Repository action="remove" url="http://foo.bar" displayname="foobar"/> I.e. when the repository gets removed it should print out the given displayname. Now it always prints the url. Change-Id: I227c02c45c21be3c7c93d57f4242e1fc5c189f3c Reviewed-by: Samuli Piippo <samuli.piippo@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* adjusted wrong repogen parameter nameAxel Menzel2016-09-081-2/+2
| | | | | | | '--update-new-packages' => '--update-new-components' Change-Id: Idab604bac8581102210c1a6ad6f2092e89c779fb Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Fix settings testKatja Marttila2016-06-201-7/+13
| | | | | | | | | QFile either returns 'Unknown error' or 'No such file or directory' when trying to use non-existing file. Make settings test work with both values. Change-Id: I5245b5ad0cf5b91a7eec61c17315982ce14eecfb Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Make Execute operation work without arguments in WindowsKatja Marttila2016-06-131-10/+1
| | | | | | | | | | | Since Qt5.5, QProcess start() needs a program to start. When using native arguments the program is empty and QProcess will fail to start. Removed the use of native arguments until QProcess supports setting program through native arguments. Task-number: QTIFW-862 Change-Id: Ia56344e1bf82fbd76e4e8f2ae8b6817e4bb2fce1 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* add make install functionality with INSTALL_ROOTKatja Marttila2016-05-197-0/+21
| | | | | | Change-Id: I8bad1c9bbe7b705ff0842f15fb0c9bc6c127e9bc Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* add missing tr for "AlreadyRunning" messageboxKatja Marttila2016-05-191-2/+2
| | | | | | Change-Id: Icffe886597a1f18d9eaacf1e3a14f31e252919c6 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* Do not force doc build on Linux when calling "make install"Iikka Eklund2016-05-161-6/+0
| | | | | Change-Id: I7081e43810ec8c05c75f6772140e1a464dbc08ad Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Doc: Fix PackageManagerCore::ComponentType briefLeena Miettinen2016-05-131-1/+1
| | | | | | | | The \enum command \brief commands do not seem to get automatically completed during builds anymore. Change-Id: Id81aa8f3044f6151d6b4d8a441e386deb0ca4844 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* Doc: Fix link to Supported Platforms in Qt Reference DocsLeena Miettinen2016-05-131-1/+1
| | | | | | | | The module name is needed, because there is a Supported Platforms section in this Manual, too. Change-Id: I3d77c89a2afc006d6e423d21ee46e7fbfee2058b Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com>
* Doc: Describe return values for boolean Component functionsLeena Miettinen2016-05-131-2/+11
| | | | | | | ...to suppress QDoc warnings. Change-Id: Ib79b0392efaed37b4a52932d4f7d98327a3ad306 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Doc: PackageManagerCore::ComponentType is now an enumLeena Miettinen2016-05-131-27/+21
| | | | | | | Change the documentation accordingly. Change-Id: I2f15bf724558794b66e99eab1120dc2d224600de Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update changelog2.0.3Katja Marttila2016-05-021-0/+3
| | | | | Change-Id: I31ddb526ec76b4b28a457dbb95b1809fb5425395 Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* Cleanup Japanese translation (12 obsolete).Takayuki ORITO2016-04-291-71/+0
| | | | | | | Remove 12 obsolete messages in ja.ts. Change-Id: I2d514b93056f5755760ff4eb1b44e36923b01f1c Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
* Update Japanese translation (new 2).Takayuki ORITO2016-04-291-0/+8
| | | | | | | | Update new 2 messages in ja.ts. Change-Id: Ifde5277b4ec968472831c46a940480471dec33dd Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Niels Weber <niels.weber@qt.io>
* Fix the exception message because missing a space.Takayuki ORITO2016-04-291-1/+1
| | | | | | | Added space between 'convert' from 'path'. Change-Id: I25f4eedc7d322d29c8c93dd7dd80fc13232de0b7 Reviewed-by: Niels Weber <niels.weber@qt.io>
* Make IFW compile with FreeBSDKatja Marttila2016-04-262-1/+14
| | | | | | | Change-Id: Ibebc25b738c843c0eb4291faa2bba7ac9836b008 Task-number: QTIFW-841 Reviewed-by: Ralf Nolden <nolden@kde.org> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Fix MSVC2015 build.Rafael Roquetto2016-04-182-2/+2
| | | | | Change-Id: I502e48dea6329bd6f05a776a669093f41698a274 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update minimum Qt version for 2.0.3 releaseKatja Marttila2016-03-223-48/+8
| | | | | | | Minimum required version is now Qt5.5 Change-Id: If000a507f0067650605987d38374bf6694eb16aa Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Update version number for 2.0.3 releaseIikka Eklund2016-03-225-7/+13
| | | | | | | Also update the Changelog. Change-Id: I2a74edd32783bdfb01d4706dcbc2d3ae78ac5069 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Revert "Use QQmlV4Function to correctly get empty parameters from script."Katja Marttila2016-02-177-175/+58
| | | | | | | | | | | This reverts commit eb574d77b0ab9a92b61e7738d089cd4ea4304e51. The change will not work with Qt5.5 as it is causing constant crashes in Qt installers. Using this change will require a fix for Qt5. As we are about to make Qt installers based on 2.0 we need to revert this change for now. Change-Id: Ia7906d02db645f2407ab07d14f5a037224574b29 Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
* Fix crash when updating admin installation with user/temp repositoryKatja Marttila2016-02-151-1/+10
| | | | | | | | Grant permission rights for writing maintenance config file Change-Id: I9364358455b8ad5e98b03c20d949c2562ba2535a Task-number: QTIFW-740 Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* Compile with Qt 5.5, 5.6. Minimum version is now 5.5.Karsten Heimrich2016-01-212-4/+4
| | | | | Change-Id: I60d248ea38e8176e18a9b2a642e81a0ad5fb21d3 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Fix compile with namespace'ed Qt.Karsten Heimrich2016-01-213-10/+4
| | | | | Change-Id: I9c0d399943d2f6eb9a0ab136abf24a5c8b108abb Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Update Changelog for version 2.0.2Iikka Eklund2016-01-211-0/+14
| | | | | | Change-Id: Ic7900dec6db93ecab54bb60685326226127ce20a Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: Remove dubious sentence from installer.calculateComponentsToUninstall()Kai Koehne2016-01-151-2/+2
| | | | | | | | The auto-dependencies seems already to be handled correctly in UninstallerCalculator. Change-Id: I30074036aa030399cd49a6bfe2e380ffa1e92c58 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Update documentation for --runoperationKai Koehne2016-01-131-4/+3
| | | | | | Change-Id: I031f3e5ef7f23a92185a6ad35fe9575c06ba3eb9 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update the git-archive export optionsIikka Eklund2016-01-082-0/+4
| | | | | | | | | | | The .gitattributes, .gitignore, files do not need to be present in packaged sources Add .tag for git-archive to store the SHA-1 of the commit being packaged. Change-Id: Id81ec994b8244b783b5488aa01f1ba28481a4379 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Add alternative option where to read the installer-framework sha1Iikka Eklund2016-01-041-1/+9
| | | | | | | | | | | | | | | | | The "--version" uses the sha1 of the git checkout of the installer-framework. This works when making the build from git checkout. For Coin (continuous integration) the installer-framework builds are made from stored src packages where the .git directory is not present. In this case read the sha1 from the .tag instead which is present in the Coin produced src packages. Change-Id: Ic6387c844699f4410c043a4df84727bb5c1108ae Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Add sync.profileIikka Eklund2015-12-301-0/+6
| | | | | | Change-Id: Iab18aa118911d8a6b6b352e958e6b301e55d4a70 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
* Add .qt-license-check.exclude and .qt-license-check.optional rulesIikka Eklund2015-12-302-0/+2
| | | | | | | | | | | | | | | Installer-framework has two imported third party modules. src/libs/7zip: - Do not attempt to check for license headers for these files, use exclude filter. src/libs/kdtools - If license headers exist then check those i.e. optional. These files are contributed by KDAB. Change-Id: Ie3c7507c0386680ae84987628291a9612590a4f7 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Update license headersIikka Eklund2015-12-29369-1340/+1450
| | | | | | | | | Update existing license headers. LGPL -> LGPLv21. Update copyright year as well. Change-Id: Ie1d71f8c68186b8f625f409ddf94691f178093c9 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Fix target directory check for reserved words on WindowsAndy Shaw2015-12-071-1/+1
| | | | | | | | | If the directory starts with "Con" etc then it is still ok to use, it is only if it is /Con or /Con/ that it is not allowed. So the extra check to be sure has anything after the reserved part is included. Change-Id: I72e0e0f98167f29da54cb627e75cd1814c3f9706 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
* Use QQmlV4Function to correctly get empty parameters from script.Karsten Heimrich2015-11-267-58/+177
| | | | | | | | | By using QQmlV4Function to get the parameters, empty strings passed are correctly kept as empty and not null. Task-number: QTIFW-724 Change-Id: I592e2230e574ba82e765bd0079964db29452b2e9 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Fix errors when running updates in a directory requiring elevationKai Koehne2015-08-202-2/+2
| | | | | | | | | | | | | | isWritable() is not a reliable way to check for permissions on Windows. Instead, just try to create a file. The alternative would be to set the magic qt_ntfs_permission_lookup variable to 1. Anyhow, this might slow down things and cause other regressions ... Task-number: QTIFW-746 Change-Id: I1b5637670bfcfe29966f0545ce2c6b1f663a9738 Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Doc: Fix the function name in Controller Scripting page.Takayuki ORITO2015-08-111-1/+1
| | | | | | | | Callback was not written in the function name. It is targeted for 'Start Menu Directory Page' section. Change-Id: I8e206caf29865e1e01defddc1fb9ae60c5f85632 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Fix usage of system proxy with credentialsKai Koehne2015-08-052-1/+14
| | | | | | | | | | | | | | So far we've been using the entered credentials only for custom proxies on Windows and OS X. If one selected 'System Proxy' we asked or the credentials, but tried again without setting them. This fixes a regression introduced in 2.0, where we started to interactively ask for credentials. Task-number: QTBUG-46547 Change-Id: If059a9c68a0976db0453abdc795d9546c4b3aa4a Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update ChangeLogKai Koehne2015-06-301-0/+2
| | | | | | Change-Id: I4e72da86a559165ca6471945103df4509e21ff08 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Unify handling of translationsKai Koehne2015-06-304-21/+63
| | | | | | | | | | | Mimic the logic implemented in installerbase/QTranslator::load() by - using QLocale().uiLanguages() - splitting up the locales into candidates (first en-US, then en ...) - implicitly assuming the default is English Task-number: QTIFW-390 Change-Id: I294288d5fc739ebf12c93a0e1a43d613b3834721 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Init all components with proper install actionJarek Kobus2015-06-291-1/+1
| | | | | | Task-number: QTIFW-727 Change-Id: Iae9d232310370fefc0c9dca771e6b2cca6b5b433 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Version bumpKai Koehne2015-06-165-8/+13
| | | | | | Change-Id: Ic11a894ef21f4dd2967a3fd662fad8a30f11ba7e Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Fix: .dat file gets deleted after multiple component changes.Karsten Heimrich2015-06-111-0/+6
| | | | | | | | | | | | | | | | | | | | We can close the .dat file in maintenance mode. There is no need to keep it open since no packages are in there and resources are mapped into memory anyway. Fixes commit 7f2c98c8 that updates the .dat file on soft restart. On Windows updating did not work cause the .dat is opened and locked by the OS. To overcome locked files we run a VB script that does a deferred rename once the lock is gone, but in case of a soft restart we now did start several of them depending on the amount of restarts. That had the undesired effect of several replace/rename operations, of which only 2 "succeeded": - First script: Remove .dat | Rename .dat.new -> .dat - Second script: Remove .dat | no .dat anymore... Task-number: QTIFW-689 Change-Id: Ic3ee1b418890eabe5b854dc7879cd7bc118f9240 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Doc: Mention what you can do with a control script early onKai Koehne2015-06-041-1/+5
| | | | | | | | Task-number: QTIFW-166 Change-Id: I42ff186b7f4203b6f29685d10136e25089892c4d Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>