summaryrefslogtreecommitdiffstats
path: root/installerbuilder/common
Commit message (Collapse)AuthorAgeFilesLines
* Use qDebug instead of verbose.kh12012-01-173-78/+73
| | | | | | | The message handler now forwards everything to the verbosew riter anyway. Change-Id: I822f86e8f2e2e7690a3b855ed83199d2f41dc480 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Make it possible to stream the Repository class.kh12011-11-282-0/+34
| | | | | | | | Possible use cases are streams into QVariant->QSettings. Change-Id: Id92371886eda950749495558b50df04e5803ead8 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Simplifications in PackageInfo and ZipJob.hjk2011-11-212-22/+8
| | | | | Change-Id: If92e16fb5f27c262048471eb9ea45e5c247f65b9 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remaining whitespace, removal of empty destructors etc.hjk2011-11-213-17/+15
| | | | | Change-Id: I9f99ae71e832586432d6fc493a701c5d5d074d6a Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Some replacements of QString::fromLatin1 with QLatin1String.hjk2011-11-214-18/+18
| | | | | Change-Id: I76d6b7a0b7cb2a3acd4e82aa793ce50e43e1c678 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Simplify KD* directory structure.hjk2011-11-212-2/+3
| | | | | Change-Id: Ia6a4a9581873ada42aed3818d8fd2a4f41763f75 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Remove re-directing KD* header.hjk2011-11-212-3/+1
| | | | | Change-Id: I840d5d7739161300b38ac9b77eaabb2840c9fe02 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Code cosmetics.hjk2011-11-182-73/+73
| | | | | Change-Id: Iedce4ef3b9497cb1fe990aaf0d6a024f35dc071e Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Code cosmetics.hjk2011-11-1811-261/+259
| | | | | Change-Id: Ia42fccff507fce1e999d4534656984b6ebf5184b Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Remove operation xml verbose output.kh12011-11-181-6/+6
| | | | | | | | | Delete the operation and continue in error case without adding the operation to the performed operations list. Change-Id: I8e0f9bacb0d3b1e3fc1883b77e9a52d2f886d1b5 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-1/+1
| | | | | | | | | | | 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>
* If there happens to be an error during fetch, reset states.kh12011-11-092-11/+24
| | | | | | | | | Fix some missing pieces in repo info job, we need to clear already created tmp directories. Extend tmp dir deleter to support this... Change-Id: Id4ff22899959e488c3346348fdf657b628a38e30 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
* make sure that a component with addElevatedOperation will get ↵Tim Jenssen2011-11-081-0/+14
| | | | | | | RequiresAdminRights tag Change-Id: I5b8e00212b580c968d15e7b5e93be43a66ad6649 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Remove superfluous semicolon...kh12011-11-081-1/+0
| | | | | Change-Id: Ie9eb822191a5dc2a0ee16b78201cfce28577e42a Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* added support for updateUrl redirectsAlexander Lenhardt2011-11-042-7/+9
| | | | | | | | | - Updates.xml can now have a tag <RedirectUpdateUrl> which can be set via repogen -u [URL] Change-Id: I6748d32341464a868b27e937f104f5601c39a726 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* Read possible authentication settings for remote repos.kh12011-11-012-28/+145
| | | | | | | Change-Id: Ic7a2c0d572f84f1374e2f97fe77555dba560bd46 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* the collected items need to depend on the addDependencies booleanTim Jenssen2011-10-211-0/+8
| | | | | Change-Id: I3b4ea4c090efd42bcc5de21a9a9340e72856f848 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* rename available in availablePackageInfosTim Jenssen2011-10-211-5/+5
| | | | | Change-Id: Id6da56b94d7992166dff36e1664b293fcb072962 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* don't calculate dependencies during repogen/binarycreatorTim Jenssen2011-10-201-0/+5
| | | | | | Change-Id: Ic232e15ababba61450c24ab201ba360ea8a0b6ba Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Fixed QTSDK-961Alexander Lenhardt2011-10-132-7/+19
| | | | | | | | | | | | - added support for version inheritance attributes to repogen - added version inheritance for components - 'inheritVersionFrom' attribute can be set for Version tags added support for version inheritance attributes to repogen Change-Id: I7e9a3a71620de2d8ffed0e0296b68f307304d9f6 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com>
* cleanFromOSCreatedFiles -> removeSystemGeneratedFilesTim Jenssen2011-10-102-2/+2
| | | | | | | | Change-Id: I282522e0219965b2865f1b3d0a77547903703ace Reviewed-on: http://codereview.qt-project.org/6349 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* use new cleanFromOSCreatedFiles methodTim Jenssen2011-10-102-0/+12
| | | | | | | Change-Id: Idf2da58ebd07210055d2e463852d42b767b17cf9 Reviewed-on: http://codereview.qt-project.org/6258 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* improve xml error output in repository generationTim Jenssen2011-10-051-1/+1
| | | | | | | | Change-Id: I968ad2a4ed5d26ed87afefc4008ccb67fc1d43e7 Reviewed-on: http://codereview.qt-project.org/6081 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>
* Check for valid version number during package collect.kh12011-09-061-0/+6
| | | | | | | | | Change-Id: I20a484beddc3ba00adb0b57e9bf0b9644252d28a Reviewed-on: http://codereview.qt.nokia.com/4257 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com> Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* No need to limit on directoriesMaurice Kalinowski2011-08-311-3/+0
| | | | | | | | | SDK Maintenance packaging takes an installer binary, currently breaks packaging on Linux at least Change-Id: I8cad0387d8db349c65ca3f3839f14c23943e9c51 Reviewed-on: http://codereview.qt.nokia.com/3944 Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* allow archivegen to archive multiple directoriesMaurice Kalinowski2011-08-313-11/+13
| | | | | | | | | | | | | | this includes changing the syntax, it is now like in 7za archivegen arch.7z dir1 dir2 ... We will need this for further packaging. Adding incrementally does not work as the fascade creates a temporary files and writes it back. Hence we cannot add one directory after another Change-Id: I1923a3beabacf7b8f3618807c5377061555d98b2 Reviewed-on: http://codereview.qt.nokia.com/3889 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* make some more ouput if it can't copy script fileTim Jenssen2011-08-241-4/+5
| | | | | | Change-Id: I8bb8081f91bdc7433f6bfec71e34c904004d28c6 Reviewed-on: http://codereview.qt.nokia.com/3517 Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
* Remove compressing resources and operations.kh12011-08-162-11/+8
| | | | | | | | | Causes way to much trouble during an update. Change-Id: I46ea549e5a6395d59182524570925843983c6954 Reviewed-on: http://codereview.qt.nokia.com/3007 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* enable ,<space> and , as seperator in stringlist valuesTim Jenssen2011-07-271-1/+1
| | | | Reviewed-By: Niels Weber
* Operations -> OperationListkh12011-07-052-2/+2
|
* Fix some includes, remove auto pointer.kh12011-07-052-4/+4
|
* Define some typedefs and hide the "Update"...kh12011-07-042-10/+5
|
* Use typedef to hide the "Update" prefix, doesn't fit really.kh12011-07-042-3/+3
|
* Properly fix the use of the binary file raw pointer.kh12011-06-242-42/+43
| | | | | | | | | Make sure we pass the shared pointer around instead of the actual raw pointer, this makes sure it get's destroyed at the right point in time. As long as we run the installer, the binary stays read opened during the whole application run, while running the updater/ package manager/ uninstaller will close the binary as soon as we mapped all data.
* Proper variable naming.kh12011-06-242-18/+18
|
* In case we are the installer do not close the file.kh12011-06-241-1/+0
| | | | | | | This is only the case for offline installer, as all resources are attached to the binary. Once we close the file, we are unable to read any resource like archives, operations etc... This fixes the crash seen by Maurice using the offline installer.
* Revert the revert commits as they do not fix the crash.kh12011-06-246-843/+0
| | | | | | I was trying to fix a crash in binary format handler that I thought was caused be removing these classes. Still this wasn't the case after some debugging, and, we really don't need them.
* Revert "Resolve TODO. Remove as it's not needed at all."kh12011-06-242-0/+11
| | | | This reverts commit fc936fe798cef701f1fde434eaf25b9a34ad96b1.
* Revert "Remove unused classes. Disable tests."kh12011-06-244-0/+832
| | | | This reverts commit 288995149bb729873f31dc7db53bf4ec3591a3ed.
* Make it possible to use the class with QVariant.kh12011-06-231-1/+3
|
* Rename files to match class name. Adjust includes.kh12011-06-203-463/+1
|
* Rename InstallerSettings to Settings.kh12011-06-203-52/+49
|
* Style changes. Cleanup.kh12011-06-201-13/+17
|
* Add one more constant.kh12011-06-101-1/+1
|
* Move constants into global file and use where possible.kh12011-06-091-3/+4
|
* Add convenient function.kh12011-05-312-4/+11
|
* Get rid of mmap-ing at all.kh12011-05-301-21/+17
| | | | | | It does not save that much memory as the resource is not in the gigabyte range. This will enable us to also get rid of the complex rename process for the binary data file...
* Add convenient function.kh12011-05-302-0/+9
|
* Merge branch 'master' into refactorkh12011-05-301-0/+7
|\
| * added a check that the component name can't contain a "-"Tim Jenssen2011-05-261-0/+7
| |