summaryrefslogtreecommitdiffstats
path: root/installerbuilder/installerbase
Commit message (Collapse)AuthorAgeFilesLines
* Use qDebug instead of verbose.kh12012-01-173-27/+28
| | | | | | | The message handler now forwards everything to the verbosew riter anyway. Change-Id: I822f86e8f2e2e7690a3b855ed83199d2f41dc480 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* internal config controls whether the maintenance tool can be run standaloneAlexander Lenhardt2012-01-101-0/+28
| | | | | Change-Id: Ia2d95f4f25195981676531e9837a55851360de68 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* improve parse arguments at operationrunnerTim Jenssen2011-12-151-1/+2
| | | | | | | - and don't pollute args with this cleanlooks hack Change-Id: I6cacd33b5c02effe267fabc745b1e8f1aab77166 Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
* fix the hack that uses cleanlooks under Ubuntu 11.10Tim Jenssen2011-12-131-5/+6
| | | | | | | | - count wasn't the right position in the array - and don't ignore style from commandline Change-Id: I8bc5f169c51adafeb333b0872bb5adbde59d01e7 Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* try to hack around the ubuntu 11.10 problemTim Jenssen2011-12-121-0/+28
| | | | | | | Change-Id: I3e36c2816513e079f57b168c044f8b2d3355164d Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com> Reviewed-by: hjk <qthjk@ovi.com>
* removed triggerControlScriptForCurrentPageTim Jenssen2011-12-071-1/+0
| | | | | | | | - it is not needed anymore Change-Id: If75bd18d390368feb4244da98457a75639a7b02f Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
* Move the restart of the wizard into installer base.kh12011-12-011-3/+12
| | | | | | | | Also clear some more labels on restart or after new setings. Change-Id: I3a3727b0d4f2f43e13aafa5f6e499ac74277774c Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Make sure we reset the package fetch state.kh12011-11-302-1/+6
| | | | | | | | | Fixes the problem that after we've updated, installed components, the ui would still show the old state and the "Next" button would behave strange. Change-Id: Iaeb480e69f52230a15233dfaf3ea3116e9728042 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Switch columns for better visability (Username/Password).kh12011-11-301-9/+10
| | | | | Change-Id: I69dd022b43b3c0e04f4de2c76be04a873d54fa30 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Force repaint of the wizard ui.kh12011-11-301-0/+4
| | | | | | | | | Fixes the "Next" button problem as reported by some of the tester. Still we should figure out where the event gets lost. Change-Id: I626b486ef220d33a89b9bd9cc8e3039dca171c9c Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Hide the automatic restart page.kh12011-11-302-3/+7
| | | | | | | Might also fix the double commit button seen by the tester. Change-Id: I67b0ac36eee97afcc6bba84e4f102ea056ea4bc0 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Fix warning about wrong initialization order.kh12011-11-301-1/+1
| | | | | Change-Id: I3cbcec3c8b22558b8e452be8abfa44b392e1c8b3 Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* Update to the latest and greatest...kh12011-11-297-79/+86
| | | | | Change-Id: I7f0fb12735293e785229da22a8e794c2f7d7df96 Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* Remove fetch and implement "lazy" fetch.kh12011-11-284-169/+138
| | | | | | | | | Now it feels better then to bring up the dialog and start the fetch instantly, the user now has the opportunity to edit the network settings first and on "Next" we fetch the tree. Change-Id: I1ebce333bf5157421f2b62afbe5630b0ec1e0134 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Implement network settings dialog.kh12011-11-286-15/+1341
| | | | | | | | | User settings are stored inside a network.xml file, e.g. proxy type, proxy authentification, repositories etc... Default repos are saved kind of encrypted inside the already existing ini file. Change-Id: Ie97f2e82af7faf4d15719c669a0fa4158b503ce3 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Make it possible to set proxy factorys for the downloaders.kh12011-11-281-3/+3
| | | | | Change-Id: I1a728b60a196807fa8257b22e58165e2c55be787 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Rename function and call it earlier in the chain.kh12011-11-283-13/+14
| | | | | | Change-Id: Iebbbe1163939777c7a97f45f2926cd102fb2c845 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Cleanup.kh12011-11-281-2/+1
| | | | | | | | | Save some QLatin1String - QString conversion, remove dead code. Rename some functions, etc. Should not change much functionality. Change-Id: I42bfbe19d773e9fa2cc18e11e74f71ef271f4130 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Let the app parse the arguments again in gui mode.kh12011-11-281-3/+2
| | | | | | | | | | Also do not stop on unknown arguments, this is rather stupid to do, just print the error message. Might fix a problem on OSX with session id... Change-Id: I9ca6903b0073ea54b398534c5273f7f0f2e50db4 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* Extend buffere size, move, add includes and defines.kh12011-11-233-10/+30
| | | | | Change-Id: Ic990012ca57bd97e50823de91bc9576dac6b7a34 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Let the the gui application open a console on Windows.kh12011-11-233-53/+135
| | | | | | | | | | If running in verbose mode, redirect all output to our window. Change-Id: Id93fb0b81ceaa7f0ad5eda26d5d313529976f661 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* added --version description to command-line helpAlexander Lenhardt2011-11-221-0/+2
| | | | | Change-Id: I317ef287ced623eb18fa3a92acb90fcc1e53c93b Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* added command-line helpAlexander Lenhardt2011-11-221-0/+40
| | | | | | Change-Id: I034430cef3104ffcb6898eefdb5c421e15c5fa66 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* Compile fix for namespaced Qt.hjk2011-11-221-0/+3
| | | | | | Change-Id: Icfdbb1f062c0671dcdc5fe5615130e991389d071 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Some replacements of QString::fromLatin1 with QLatin1String.hjk2011-11-211-1/+1
| | | | | Change-Id: I76d6b7a0b7cb2a3acd4e82aa793ce50e43e1c678 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Simplify KD* directory structure.hjk2011-11-212-5/+5
| | | | | Change-Id: Ia6a4a9581873ada42aed3818d8fd2a4f41763f75 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove re-directing KD* header.hjk2011-11-212-5/+5
| | | | | Change-Id: I840d5d7739161300b38ac9b77eaabb2840c9fe02 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Code cosmetics.hjk2011-11-181-3/+3
| | | | | Change-Id: Iedce4ef3b9497cb1fe990aaf0d6a024f35dc071e Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* have always output, even when not verboseNiels Weber2011-11-171-1/+1
| | | | | | Change-Id: Idb2ff09875017c31f3891d32a19e91678092cbad Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Use QSet throughout the whole code, saves us QList conversions.kh12011-11-151-8/+7
| | | | | | | | | | | Remove default parameter from Repo ctor, lead already to confusion. Also add some more specific {get/set} repo functions, to be able to distinguish between the different kind of repositories (needed for setting dialog). Change-Id: I2c1e4d5377799f54e408a89785bdc5f01619f846 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
* Fix crash during install with latest SDK.kh12011-11-091-4/+4
| | | | | | | | | | Since we can have a very big files, do not read them at all, instead read chunks during hash verification. Avoids out of memory exceptions. Fix notify(), if we catch an exception, terminate the app as it's to late to do anything useful now. Change-Id: I2805eeff7d8c62ea73264c92a764724e100840e3 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Make sure to check that the download succeeded.kh12011-10-061-0/+7
| | | | | | | | Change-Id: I2da74e51e207e50010ff28360e78f0fd929a11e0 Reviewed-on: http://codereview.qt-project.org/6146 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Implement mechanism to update the maintenace tool.kh12011-10-043-0/+230
| | | | | | | | | | | | Have an option to update the maintenace tool without using the full installer binary. This can be used as fallback in case the updater/ package manger won't start anymore. Change-Id: I36be195203cb0172484d739c9f14a2e073ab7792 Reviewed-on: http://codereview.qt-project.org/5885 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Add some useful information about the installer base version.kh12011-09-304-10/+40
| | | | | | | | | | | | Add the git sha1 and the build date to the verbose output, seems more useful then the static version 2 we had before. Add --version command line paramter. Small changes to the verbose output. Change-Id: Idce7025dd64f3d56c2e6c53408167c95f41040d4 Reviewed-on: http://codereview.qt-project.org/5863 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Move these into private source files, Include cleanup.kh12011-09-304-61/+150
| | | | | | | | Change-Id: I8118c45a015f403a3f9aa28eff2e2b3cb795d1d4 Reviewed-on: http://codereview.qt-project.org/5862 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* fixed wrong argument, added missing word runTim Jenssen2011-09-151-1/+1
| | | | | | | Change-Id: I52a50e18c5f4fcddaf808457336a3784564781c6 Reviewed-on: http://codereview.qt-project.org/4923 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com>
* we need the application object for some informations laterTim Jenssen2011-09-141-0/+1
| | | | | | | Change-Id: I67e1a6d4c3dcbd62d7fda343054fc509d7b4b935 Reviewed-on: http://codereview.qt-project.org/4909 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Fix some spelling errors.kh12011-09-081-3/+3
| | | | | | Change-Id: Ic744d6f0a5abd9ab311690e7a0c66832cb60f94a Reviewed-on: http://codereview.qt-project.org/4475 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* now an installer/maintenancetool can run operationsTim Jenssen2011-09-071-0/+8
| | | | | | Change-Id: I9cea18aea7cdc9091b8268692b37dc1ebd098936 Reviewed-on: http://codereview.qt.nokia.com/4267 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Try to read installed packages only in non installer mode.kh12011-08-251-1/+1
| | | | | | | Change-Id: I955bf5d3b1c543a5f66c8afbb55b1e430d2c4993 Reviewed-on: http://codereview.qt.nokia.com/3588 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Revert parts of the former changes.kh12011-08-241-4/+4
| | | | | | | | | | Now reset the core checked list in show event, as this is not called that frequently as nextId(). Solves the problem of always recalculating the components to install. Change-Id: I282d25236441c6a91c833867ce65aa351dcfcc67 Reviewed-on: http://codereview.qt.nokia.com/3503 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove stupid check. Return the proper core status.kh12011-08-241-8/+2
| | | | | | | | | | | Also take into account the current status, break if it is already Canceled or Failure. Fix fetch remote packages, as it would set always Success, even if we already canceled. Change-Id: I3562d485c762c6df6ff230029bc678475afd5b2c Reviewed-on: http://codereview.qt.nokia.com/3502 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Add a hack to be able to check components.kh12011-08-231-4/+4
| | | | | | | | | | | This is needed to make the resolve code working properly for scripts as well for the uninstall code to resolve auto dependencies. Should be removed as soon as possible. Change-Id: Ia33efdc63d4e3845927b3bbfa5af7a375ceed9ac Reviewed-on: http://codereview.qt.nokia.com/3415 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Make sure we only calculate the components on actual change.kh12011-08-231-20/+10
| | | | | | | | Change-Id: I5967f2fa2cba3e54519a4b8b5155b570d34d7a22 Reviewed-on: http://codereview.qt.nokia.com/3333 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* now we forward exceptions from script and queue slotsTim Jenssen2011-07-291-3/+37
|
* use new orderedComponentsToInstall methodTim Jenssen2011-07-221-5/+2
|
* added a first version of calculate to install components with dependency graphTim Jenssen2011-07-221-0/+1
|
* show licensepage even componentsToInstall is not workingTim Jenssen2011-07-221-0/+2
|
* disable some not working dependency code and splitted components()Tim Jenssen2011-07-212-7/+1
|
* break if license is foundMaurice Kalinowski2011-07-201-1/+4
| | | | | | | no need to iterate through the remaining components if we know that we need to display the license page Reviewed-By: Tim Jenssen