summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update Changelog4.2.04.2Arttu Tarkiainen2021-11-051-1/+0
| | | | | | | Update list of translation changes. Change-Id: Ifa2e37ea37dbf6dc172caadb2e58bd929b1bf9d4 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Revert "Add Korean translation"Arttu Tarkiainen2021-11-051-2771/+0
| | | | | | | | | This reverts commit 1e053058bbee09c21a132909901446694ed4d95e. Reason for revert: Remove .ts file for now, until the quality of translation is verified. Change-Id: I729b6c237ebe1b6638b27a072a2abcd11fe1394e Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update ChangelogArttu Tarkiainen2021-11-031-1/+1
| | | | | Change-Id: I47cdc4df9c1a4e99fb0f4eabddd5ba201042ef2d Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Libarchive: Fix extracting hard links pointing to files in archiveArttu Tarkiainen2021-11-031-0/+12
| | | | | | | | | | | Since we already adjust the output path for archive entries, libarchive would fail with the error string "Hard-link target '...' does not exist" for hard links referring to extracted files. Fix by also adjusting the hard link target paths. Task-number: QTIFW-2403 Change-Id: I8f78117c5b0707a70c76433ca1c1483ea49b432b Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix creating archives containing Windows shortcutsArttu Tarkiainen2021-10-292-1/+57
| | | | | | | | | | | | | On Windows, QFileInfo::isSymLink() returns true for *.lnk files, which unlike symlinks contain data - when creating an archive the writing was incorrectly skipped. Also add test case for creating and extracting archives containing either symlinks or shortcuts. Change-Id: I3ebbd28e889ffa17ece7378c3812244a55df20d5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* LibArchiveWrapper: use local zero-timer for processing server signalsArttu Tarkiainen2021-10-282-9/+7
| | | | | | | | | | | | | Now that the server process may request file seeks in addition to reads for archive formats supporting them, the interval which we process the requests will have a big impact on the extracting speed. Also shrink the read buffer as its size isn't as significant for the performance after this change. Task-number: QTIFW-2384 Change-Id: Iaf296833c6ff1acfc666a6e82f661e1a40c77b61 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix symlink handling when packaging Zip archivesArttu Tarkiainen2021-10-271-1/+1
| | | | | | | | | | | | archive_write_header() will write the complete symlink to the archive, the client application should not try to write any data for symlinks or if archive_entry_size() is zero. The tar.* archives were not affected by this. Task-number: QTIFW-2382 Change-Id: I6a5e62ef4c7e650ad806f183556e39ac8ae8cdc3 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix qdoc warnings introduced by the archive handling changesArttu Tarkiainen2021-10-275-22/+21
| | | | | | Change-Id: I47d24c72317bed594b22b234be75d0359f2e2b98 Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Add support for seeking files handled with libarchiveArttu Tarkiainen2021-10-268-15/+190
| | | | | | | | | | | | | | | | | | | This fixes losing executable bits of files in Zip archives when extracted. Zip archives store file metadata in two ways, partial metadata per-entry and full metadata at the end of archive. IFW's read implementation previously did only streaming without support for seeking archives, which is required to obtain full metadata - meaning the partial metadata was used instead by libarchive's Zip reader. The extracted entries between the two metadata types are not consistent. This change also enables usage of archive formats that cannot be accurately handled with a streaming model, like 7zip which needs to read key data from the end of the file before reading file data from the beginning. Task-number: QTIFW-2372 Change-Id: Ie4ed33040fc52de073546e46d9da726816f47a81 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Print essential component information with std::coutArttu Tarkiainen2021-10-227-78/+70
| | | | | | | | | | | | | | | | | | Do not use our own message handler for printing XML-formatted component information (from 'list', 'search', 'check-updates') that is expected to be included in output regardless of the current verbosity level or logging rules. Higher verbosity can still add more information to be included in output. Also: - Modify auto-tests to pass and check the output correctly. - Remove now orphaned 'ifw.package.info' logging category. - Rename 'LoggingHandler::printComponentInformation()' to 'printUpdateInformation()' to better match the intended purpose. Task-number: QTIFW-2349 Change-Id: Id1a868f8f824c606825cd6168974a7e3845383e6 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Revert "Show messages from lcPackageInfo logging category regardless of ↵Arttu Tarkiainen2021-10-221-1/+1
| | | | | | | | | | | | verbosity" This reverts commit fae6c9901645d6ae6acdeaf843e542385318a1d8. Reason for revert: updateinfo plugin also sets QT_LOGGING_RULES=*=false, meaning the printing is still suppressed. Change-Id: I5f14d471221a32c58d028be5f06a199422dca7d4 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix dependencies example exceptionKatja Marttila2021-10-211-0/+1
| | | | | | | | | | Dependencies example creates a local repository. The example was failing in Windows because QFile was not able to rename the file when creating a local repository as it was open by Lib7zArchive. Task-number: QTIFW-2362 Change-Id: I7d118707c0d770e67b5a71167b9818fbcccc599f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Changelog4.2.0-betaKatja Marttila2021-10-141-0/+44
| | | | | Change-Id: I157f5d19122494118b1ffde582986c7701303130 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Chinese translationKatja Marttila2021-10-141-199/+274
| | | | | | Task-number: QTIFW-2095 Change-Id: Ic867042bfc6598a10e5882f028f152eefeca2a00 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Restore Brazilian Portuguese fileKatja Marttila2021-10-141-0/+2780
| | | | | | | | | The Brazilian Portuguese was renamed from ifw_pt_BR to ifw_pt so that it was easier to translate to European Portuguese. Restoring the Brazilian Portuguese file after the translate. Change-Id: I778af42b105be7bcee8178bd69a04b1eafe119b9 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add Korean translationKatja Marttila2021-10-141-0/+2771
| | | | | | Task-number: QTIFW-2095 Change-Id: I87fb87ddb9a80754c03f5342d6a9350632783497 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Replace occurrences of "TargetDir" string with 'scTargetDir' constantArttu Tarkiainen2021-10-132-4/+4
| | | | | | | | This makes it easier to grep usage of variable and we shouldn't really use the magic string as there is already a constant. Change-Id: I96a6b3901f79127b7cf71494643e2cd038df6670 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Add ability to query used language in scriptKatja Marttila2021-10-123-5/+10
| | | | | | Task-number: QTIFW-2208 Change-Id: I8c8e9bd798320ab6d4397ac411cfea75177d27f2 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Windows: return the value of "TargetDir" variable with '/' as separatorArttu Tarkiainen2021-10-121-1/+1
| | | | | | | Task-number: QTIFW-2344 Change-Id: Ibedcecc82b7a7a28040d0308aa4211925e7fc251 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Show messages from lcPackageInfo logging category regardless of verbosityArttu Tarkiainen2021-10-121-1/+1
| | | | | | | | | This is required for the deprecated '--checkupdates' option to behave as it did with IFW 3.x, printing only the XML-formatted update information. Task-number: QTIFW-2349 Change-Id: Iebd75b33943216a1c7d3b50882e2d1b7a567aa08 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update Russian translationKatja Marttila2021-10-121-119/+195
| | | | | | Task-number: QTIFW-2095 Change-Id: Ia17bdabff9d62f30bbe0ef236f8b918fc3402342 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update French translationKatja Marttila2021-10-111-231/+307
| | | | | | | Task-number: QTIFW-2095 Change-Id: I850a425bdb866d008c6484c13c55bf855b0c9784 Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update Japanese translationKatja Marttila2021-10-081-200/+270
| | | | | | Task-number: QTIFW-2095 Change-Id: I71ed70f0868d63e60b8c4d978425d2fa44bc9b3c Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix uncaught exception in InstallIconsOperation::performOperation()Arttu Tarkiainen2021-10-081-2/+12
| | | | | | Task-number: QTIFW-2347 Change-Id: I1eb11495f3985a0e845853fbfc598447e662bada Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add Portuquese translationKatja Marttila2021-10-081-533/+607
| | | | | | | Task-number: QTIFW-2095 Change-Id: I7c32fd1cccbc2f846f079c46334a83744fc1ab0b Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update qt5 branchSimo Fält2021-10-071-1/+1
| | | | | | Task-number: QTIFW-2130 Change-Id: I520c12a871f5977d96a512c5530131782a5c9539 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Blacklist tst_ClientServer::testQProcessWrapper()Simo Fält2021-10-071-0/+2
| | | | | | | This tends to fail on CI with rhel 7.4 Change-Id: I50408060f75d57497b878bc171289bb39a859644 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add invokable methods for converting paths to/from native separatorsArttu Tarkiainen2021-10-074-0/+73
| | | | | | | | Task-number: QTIFW-2344 Change-Id: I971e96ed5b1f1e52c5779a04b7edab0952d89d9a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Update Arabic translationKatja Marttila2021-10-071-218/+312
| | | | | | | Task-number: QTIFW-2095 Change-Id: I19fa879ce81f2f29ae8c97a594a8e8f13ef5b234 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update Spanish translationKatja Marttila2021-10-071-212/+286
| | | | | | Task-number: QTIFW-2095 Change-Id: I7b64693e199e54acf2bc44450d466a40ffdd5144 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update German translationKatja Marttila2021-10-061-250/+323
| | | | | | Task-number: QTIFW-2095 Change-Id: I5e50c6c1097779acb952065035bd844a396a6eca Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Localization: Add missing tr for archive download -textsKatja Marttila2021-09-291-2/+2
| | | | | Change-Id: Id6a94106256309af07ac8fe58952fce4382ee5ea Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Emit translationLoaded -signal after productkeycheck initKatja Marttila2021-09-241-1/+6
| | | | | | | | Productkeycheck needs the information about loaded language, send the signal after it is initialized. Change-Id: If85d5127c80ae0d5f2caa62c731c8669e8d6df7e Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Polish translation fileKatja Marttila2021-09-231-25/+85
| | | | | | | | | The translation file is updated but most of the new strings are not translated. Added translation for strings 'Installing' and 'Finished'. Task-number: QTIFW-2049 Change-Id: I59fe5ed56132475538fba1f91b9cfb433b871d0c Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix German translationKatja Marttila2021-09-231-1/+1
| | | | | | Task-number: QTIFW-1905 Change-Id: I4565e14d2b7790fe9c64bf3c53b8f9116a04865c Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add 'no-obsolete' to remove the deleted stringsKatja Marttila2021-09-221-1/+1
| | | | | Change-Id: I255a17f5a5460d41492f11ba1dacf7fb08155099 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix typo in Russian translationKatja Marttila2021-09-171-1/+1
| | | | | | Task-number: QTIFW-1496 Change-Id: I39ca95f5f5b9139c4ca107f2aee4716f98901bcd Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix typo in German translationKatja Marttila2021-09-171-2/+2
| | | | | | Task-number: QTIFW-1421 Change-Id: Icbaeab855313e05188735aba250fa6a2ba503be4 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Doc: Note the expected translation name format in package dir referenceArttu Tarkiainen2021-09-161-2/+4
| | | | | | Change-Id: I66c5c83a3df29b7c5926277270979d7cf933be6c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Merge "Merge remote-tracking branch 'origin/4.1' into master"Arttu Tarkiainen2021-09-1519-95/+169
|\
| * Merge remote-tracking branch 'origin/4.1' into masterArttu Tarkiainen2021-09-1019-95/+169
| |\ | | | | | | | | | Change-Id: I8e2864b3ec81cffa907fe02ff1f2019e155c54e3
| | * Fix misc QDoc warnings4.1Arttu Tarkiainen2021-08-167-44/+56
| | | | | | | | | | | | | | | | | | Task-number: QTIFW-2253 Change-Id: Idf0216c1b4491160ee06924241bf26aaace9c883 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
| | * Repogen: Fix updating of repository from a partial package set directoryArttu Tarkiainen2021-08-165-30/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When collecting information about the paths to be compressed into unified metadata, if the package directory used to update repository was missing replacements for two or more components, it would reveal an issue with the traversing of the existing repository directory. Fix by adding the missing "cd up" after entering a component entry directory. Add new test case. Task-number: QTIFW-2287 Change-Id: Ica1228968398b6e987bdf89336f74f53fcd35d27 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| | * MT: Install new <ForcedInstallation> components with default check stateArttu Tarkiainen2021-08-161-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ComponentSelectionPage::isComplete() would return false if the state of the component model was "DefaultChecked" and user had not (de)selected any new components. This change adds a condition to check if there are any ForcedInstallation components that haven't been previously installed, and allows navigating forward and installing those without additional selections. Task-number: QTIFW-2286 Change-Id: I273cc7219df1eae4e11ff23e733d71a9c297bedd Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| | * MT: Fix reading of StartMenuDir value from incorrect config fileArttu Tarkiainen2021-08-161-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Value of StartMenuDir variable should be permanent after initial installation and must be read from maintenancetool.ini, don't use the default value from internal configuration file (metadata/installer- config/config.xml) of the maintenance tool binary as it: - Does not contain the path prefix for either user or system-wide start menu directory, we add this later depending on the installation type. - May change altogether with a new configuration file if the vendor has provided an update mechanism for maintenance tool, or if the user has opted for a non-default location. Task-number: QTIFW-2284 Change-Id: Id731d151b9f0acc77aa146722d1e088ea6a47eb3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| | * QtPatch: Fix catching non-zero exit codes from "qmake -query"Arttu Tarkiainen2021-08-161-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also make the detailed output to be shown on the installation error message box. Task-number: QTIFW-2273 Change-Id: I9c678a0b382d52a6ff9ba78e0d93118714cc96ae Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| | * Fix hang when canceling metadatajob by an external callArttu Tarkiainen2021-08-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Installer may leave an event loop running in DownloadFileTask::doTask when shutting down, if Downloader::testCanceled() was not yet triggered by connection events, or by a timer timeout used to check if the user has canceled download while the connection is blocked. Fix by waiting for the tasks to finish when canceled. Task-number: QTIFW-2282 Change-Id: I8800cdb3c368da3edaf8def50e3b8e837d3e993c Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| | * Doc: Minor function summary fix for component JS objectArttu Tarkiainen2021-08-162-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "component::addDependency" and "component::addAutoDependOn" methods support also specifying a comma separated list of components in the same string parameter. Change-Id: I7f4d289d80d4efd485a0cfa64c6dda93bfc2f59a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| | * Fix replacing of {external-link} tags in component tree view tooltipsArttu Tarkiainen2021-06-222-20/+14
| | | | | | | | | | | | | | | | | | | | | Task-number: QTIFW-2264 Change-Id: Ie7191ba75d923cc8d8eb353f7fac85818b87591f Reviewed-by: Katja Marttila <katja.marttila@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
| | * Fix usage of '--install-compressed-repository' with a relative file pathArttu Tarkiainen2021-06-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a function overload of QUrl::fromUserInput that takes a workingDirectory parameter, in order to be able to handle relative paths. Otherwise a string pointing to a relative local file path is handled as a short form of a HTTP URL. Change-Id: I5811661680728e79555ea7b99d0a1e8a8f294b44 Reviewed-by: Katja Marttila <katja.marttila@qt.io>