summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore_p.cpp
Commit message (Collapse)AuthorAgeFilesLines
* do not reset registered archives in installer caseTim Jenssen2013-11-071-2/+2
| | | | | | | | | - that reseted registered archives which are read from the binary content class which is only done once at the start of an installer Change-Id: I74da50276e28094555f4e7960b1a92a49b729236 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Restart on the wizard needs to cleanup component left-oversTim Jenssen2013-11-061-7/+36
| | | | | | | | | | | | | | | - use two different script engine instances - one which lives from the beginning -> the controlScriptEngine - the other one which will be reset if there are some new repositories loaded - now the core has a pointer to the gui object, but it should only be used by the script engine so a QObject type should be enough - engines are deleted as QObject children from the PackageManagerCore - registered downloaded archives are removed Change-Id: I60a4a32fb2e409059839ec11b10c57357454f57a Reviewed-by: Michal Klocek <michal.klocek@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* fix that restart is only triggered if the user wants itTim Jenssen2013-10-231-2/+1
| | | | | Change-Id: I7814e94819088a4ee82fea9a120d99be6f63d934 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* rename forceRestart to needsHardRestartTim Jenssen2013-10-231-3/+3
| | | | | Change-Id: Ic3e3b6733f3d4e7bbf7b9a2715fd2d74fb3f9a2d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Implement a way to replace the default resource.kh12013-10-161-17/+32
| | | | | | Change-Id: I2e362d255bf2526f216cbb872bbb64d37383d229 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Michal Klocek <michal.klocek@digia.com>
* Fix broken dependency resolverMichal Klocek2013-10-141-1/+3
| | | | | | | | * dependencies can have versions * remove version before sorting dependecy graph Change-Id: Iceefd7939fffcb5c5ad94d0e915de9e2d6eba172 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* make replacing installer base binary more verboseTim Jenssen2013-10-071-2/+10
| | | | | | Change-Id: Ib11b3cfa4121241421d479af23ed0ee111c0069c Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Michal Klocek <michal.klocek@digia.com>
* Fix stupid mistake to use a private class in public API.kh12013-08-071-1/+1
| | | | | | | | Also a preparation the be able to implement the next commit. Change-Id: Iaeba54e5c1cfe97178e28fcc3fe72f9623f10bc6 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* use dependency solver to order the installed operationsTim Jenssen2013-08-061-1/+46
| | | | | | | | | | | | - in case of single updates the order of the installed operations were wrong, now we reorder that till we are using that code for the install order aswell - added initial autotest for the dependency resolve code Task-number: QTIFW-318 Change-Id: If411a684cb02ef9e7d0316084075e86702bf839d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Fix broken model/component update due to wrong connected signals.Tim Jenssen2013-07-291-1/+1
| | | | | | | | | | - After 3eb3be the updater and the default model got the same components set once setRootComponents was emitted. The results was that both models would show all fetched components, not differentiating between updates and normal components. Change-Id: I053fdea73d42ca5ac1c2c26ebb063d9e7e415a13 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* cleanup some more if statementsTim Jenssen2013-07-261-16/+12
| | | | | Change-Id: I9f3ba79f069c79faefdd9eacdc8f40cd0411f11d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* add component name to operation debug outputTim Jenssen2013-07-261-2/+2
| | | | | | | | | - set the component name to every operation which comes from a component Change-Id: I3e4a1ab2896f7b469fe6606c7e89127c3d6fbc43 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Force admin rights (if needed) to be able to write the ini file.kh12013-06-191-0/+14
| | | | | | | Task-number: QTIFW-291 Change-Id: I41089cd8a82b8b53e8ba3c4edd4441afae1d8055 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Cleanup KDTools from stuff we do not use at all.kh12013-05-291-1/+0
| | | | | | Change-Id: I62d5ec103aafe7f2f4a497cc339271bdb33a8f92 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Implement configuration interface.kh12013-05-281-1/+2
| | | | | | | Task-number: QTIFW-196 Change-Id: I87724252ae4860c2fadc12786c6e588d9c45332f Reviewed-by: Niels Weber <niels.weber@digia.com>
* forward packagemanager core to ProductKeyCheck classTim Jenssen2013-05-171-4/+4
| | | | | | | | | - with this the outsourced product key check code can enable, disable or even add repositories Change-Id: I390251b7f3bfa29a6f39a9ac44aa55ec15f780a2 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Merge remote-tracking branch 'origin/1.3' into mergeTim Jenssen2013-05-171-0/+2
|\ | | | | | | Change-Id: I2ef155784d34a250c0adc878208b86da0ab2e5d2
| * Add a DisplayName setting for repositories.Niels Weber2013-04-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | If DisplayName is set, it will be shown instead of the URL. This serves to hide a repositories URL while still being able to pinpoint bugreports to a specific repository. Task-number: QTIFW-244 Change-Id: Iaf0bc1612b42f1044da936d0fc2c4ad0e1e85d61 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | introduce installerscriptengineTim Jenssen2013-05-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | - it uses one scriptengine for everything and adds the components or/and the install-controller in javascript closure contexts - added the gui object to the component script context - removed tabController from controlscript context Change-Id: I3bd6c5dcf470666c30add1b7d04a8fdd094f5f11 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Use Q_GLOBAL_STATIC{_WITH_ARGS} following Qt coding conventions.kh12013-03-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | Move the regexp into its own compilation unit, so we get it only once and use a accessor to fetch the value. I guess we should do the same with the constants file, as all strings get compiled in the file including it. At least Ossi wasn't satisfied currently. Change-Id: Ic495a82f4b3cfe7810523b12cd3ef255eb15f149 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Merge remote-tracking branch 'origin/1.3'Tim Jenssen2013-03-131-1/+1
|\| | | | | | | Change-Id: I9baea78386e8b11faaf2ee3e26c8d87be8381a1e
| * Compile (Qt5).kh12013-03-121-1/+1
| | | | | | | | | | Change-Id: I67c4a5924d2b70a09a5ad1cd6f5537b6cdbd59da Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Merge remote-tracking branch 'origin/1.3'Tim Jenssen2013-03-121-1/+13
|\| | | | | | | Change-Id: I4059551829cd42ebde7706057d8f4cca57901037
| * added first version of a product key checker APITim Jenssen2013-03-111-1/+13
| | | | | | | | | | | | | | | | | | | | This is more temporary solution to be able to use the 1.3 for new Qt releases. Change-Id: Ic28c75547da7d4d0c2efcca08cdbd76f4a0ad9f6 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Add RunProgramArgumentsAurindam Jana2013-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | The common case that the called application needs arguments wasn't implemented. Change-Id: I60b2d149399b4036c4fc30b55b0d17997993d8bd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Merge remote-tracking branch 'origin/1.3'Tim Jenssen2013-02-281-8/+20
|\| | | | | | | Change-Id: Ib88eb76f360819fbdf2fd52b19fde6d5f5650447
| * cleanup operation run outputTim Jenssen2013-02-211-8/+20
| | | | | | | | | | Change-Id: I24fefcabfe0d589a4e26930d355a593b22f2e3e2 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Fix boolean parameter which lead to less readable code.kh12013-02-201-1/+1
| | | | | | | | | | Change-Id: Ie680654f39fce130c607929f98db372dbe3c6ea1 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Remove RunMode enum, it's useless and clutters the API.kh12013-02-191-6/+6
|/ | | | | | Change-Id: I4323a0d66bda362ccee71a19352c37c9ac1b51e1 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Sort root components as well.kh12013-02-151-0/+1
| | | | | | Change-Id: Idf792d9d7e27d400ef2d9a8f04210b61fe39f779 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Typos fixed.Niels Weber2013-02-051-2/+2
| | | | | Change-Id: I20237d74b6aa206ca4c6cc52f0c484b8b14089f0 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Add 2013 to the copyright.Niels Weber2013-02-051-1/+1
| | | | | Change-Id: If64730ba7203d1a910a426c0d9c9a738ecfeff4b Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Fix typo.Niels Weber2013-02-041-1/+1
| | | | | Change-Id: I2ff380e23e08d67dc6cd7af4cb6d742d391b8896 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Fix "Retry" on uninstallationTim Jenssen2013-01-311-10/+8
| | | | | | | | | During uninstallation 'Retry' click the code checks the error value, however the error code of undo operation is nerver reset after retry. Check success return value of performOperationThreaded instead. Change-Id: Iee44d144fa1e9a3d1999ec3f46d35cab796935c6 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Force overwriting wrong initial values.kh12013-01-311-2/+5
| | | | | | | Task-number: QTIFW-218 Change-Id: I77f7d032f12614d4ba07004ccd49428424011714 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Revert "If an operation fails try again with admin rights."Niels Weber2013-01-281-5/+0
| | | | | | | | | This reverts commit 24e2c2d9c7d78c00c3c0743acd0ca92c44ff209f. The commit broke Linux. Change-Id: I53d19eb93d79bd828b0f7c4113e6637c135a118a Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* verbose output if a operation performstjenssen2013-01-021-4/+22
| | | | | | Change-Id: I055e6b41b866e7eb98ab77b6a5edb9043a634f24 Reviewed-by: Rainer Keller <rainer.keller@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* Change copyright headers from Nokia to DigiaSergio Ahumada2012-12-211-18/+27
| | | | | Change-Id: Id55a71a6ee24b234739b6066e11e9c1f2e389f73 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Some changes to start compile with Qt5.kh12012-11-201-4/+4
| | | | | Change-Id: Ie6a3ba7b3c0b24fc292d0d7444ae920dfa866a54 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Implement cmd option to dump binary content into given dir.kh12012-11-141-1/+2
| | | | | | | | | | Reuse already existing functionality, just fix the hard coded "repository" path name. Also check if we are running offline only, as otherwise there will be no data section. Change-Id: Iac45d89822fceee9e527afe0dc9eb589e39e16e7 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* If an operation fails try again with admin rights.kh12012-10-251-0/+5
| | | | | | | | | | Some operations, e.g. writing shortcuts, might fail cause per se they dont need admin rights. On windows we could install for all users requiring the operation than to write to an system folder with admin rights. Take that into account. Change-Id: I4b265dbc83e75378bc35a7ac5aa617d64af3e5c1 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Have a new class to control user set value access.kh12012-10-251-125/+56
| | | | | | | | Since both the settings object and the core engine hold user set'able values, we need to channel access thru a common object. Change-Id: I4583a8ee4639cd204a778ee125b19f69a1def710 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Update uninstaller creation on Mac to work with separate installer dataPasi Matilainen2012-10-151-0/+43
| | | | | | | | | | | | Installer data is stored in a separate file on Mac, and writeUninstaller must be updated to understand that fact. To simplify code, the uninstaller magic marker is also stored in a separate data file. Also fixed writeUninstallerBinary to write the operations start and end values that are part of the data header. Change-Id: I3ee5d1eaa0542d6187a587fb72165c3a5b7306ec Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* installer: fix replacing executable name in MacTeemu Katajisto2012-09-281-1/+1
| | | | | | | | | | | | Installer executable filename does not have suffix so use the whole file name as search string when updating the maintenance tool Info.plist file. Task-number: QTBUG-26900 Change-Id: I8fd7c981fa9490fc1882b78ec08da81c59dc7428 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Silence a warning.Niels Weber2012-08-171-1/+1
| | | | | Change-Id: I4ad459c74b555378f7069c35fbf3336930290a54 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Add new commandline argument.kh12012-08-171-5/+3
| | | | | | | | | | | | In case we run an offline installer, --create-offline-repository will dump the whole installer content into the install directory and add an extra url to the repositories pointing to the mentioned local repository. This allows an offline user to add packages without the need of a new installation. Change-Id: I3e7eb0c56f632b74f5ea41b96bf3d9be83173f41 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* no need to add the name of the class inside the classTim Jenssen2012-06-131-3/+3
| | | | | Change-Id: Iff878145c2dc5d4bec67d78a70bc8d2329db0c24 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* add a comment why there is another percent pointTim Jenssen2012-06-131-0/+2
| | | | | Change-Id: I3e26de71cf8eebbdbf57cb2aa85c7e4b16782da1 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* add "Writing uninstaller." output to the uiTim Jenssen2012-06-131-0/+1
| | | | | Change-Id: Iabf4d9ea979689697da0fa01a0ddb5f9216ecd49 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* clean up exception usageTim Jenssen2012-06-111-26/+14
| | | | | Change-Id: I6e1fd425e9b528049f1d461eb2d66c49f70e7288 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>