78 Commits

Author SHA1 Message Date
kh1
108daee55f Fix replace maintenance tool binary.
Missing QInstaller::init() did lead to crashes cause of
uninitialized lib7z (in case we used a zipped file as input).
In verbose mode console did not show up. Get rid of KDSaveFile
as it complicated to code unnecessary.

Change-Id: I5911c895d7763e4ce919b1d4761568e47b244b1b
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2014-06-04 09:56:42 +02:00
kh1
05afd837fc Replace client-server classes and update implementations.
Remove superfluous file engine tests. Introduce auto test
for newly added client server classes. Fix some wrong
implementations serverside for settings array handling and
broken arguments in process wrapper. Replace all other parts
that with new implementations. Remove now unused classes.
Change-Id: I6f9e836993096a2c2c06b06f2b06d7aa4b287e56
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2014-06-03 13:04:53 +02:00
Kai Koehne
8f8800de7a Avoid 'Too many open files' on Mac
Increase the number of file descriptors that the process can open
to the maximum allowed. By default, Mac OS X only allows 256 file
descriptors, which can easily be reached.

Change-Id: Ie4e5ab1051d8e3bf1cb39747f629360915a22d97
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2014-05-14 14:09:05 +02:00
kh1
d27ea0c558 Fix --checkupdates shows error dialog if network is down.
Task-number: QTIFW-431

We need to add a separate console window in case we run on windows,
though we can't use a gui application as the lib might popup message
boxes. (MessageBoxHandler checks against a running core application)

Change-Id: Idad8dff44c6c0bfb0bb45e8a0fb408b3db832c3c
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2014-01-08 08:29:30 +01:00
kh1
31a0f80573 Adjust ProductKeyCheck API. (in preparation for multiple pages)
Change-Id: I69d0fc9842df7fb564db57067da5f40e002b61de
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-11-25 16:53:33 +01:00
kh1
8eabcaca2c Open a console window (Windows) to show the verbose output.
Task-number: QTIFW-403

Change-Id: I5ab5221e8035e7d47c8d368c552f930db65931d9
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-11-25 16:30:10 +01:00
kh1
0f4ceb1950 Implement a way to replace the default resource.
Change-Id: I2e362d255bf2526f216cbb872bbb64d37383d229
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Reviewed-by: Michal Klocek <michal.klocek@digia.com>
2013-10-16 15:51:30 +02:00
kh1
27a63dd497 Be more verbose on the resource tree.
Change-Id: I1e079f94767d95d997ebb6d758c40e605fd36c75
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-10-16 15:07:40 +02:00
kh1
0b8592fab9 Make sure we parse and pass arguments as early as possible.
Change-Id: I384f036a24e3eb648bde0fa8e40ab8dcb0779e7b
Reviewed-by: Michal Klocek <michal.klocek@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-10-16 15:07:32 +02:00
Niels Weber
089562c2e7 Fix selected translation in special circumstances.
In cases where there where multiple uilanguages, sometimes the
wrong language was chosen for the Qt localisation.
Also, use the standard matching for locales for the ifw
translation as well.

Task-number: QTIFW-324

Change-Id: I2c4cd079baa3d1ce4c5c69bf6692ba313616f722
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-08-09 14:44:39 +02:00
kh1
5e5c0a10ff Implement dedicated translation settings support.
Change-Id: I41dd23f01e9b511c217fee7f736d9187b8a8623a
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-06-26 11:55:19 +02:00
Niels Weber
3ffc4eadee Check os-release instead of lsb-release
Should be more standard.

Change-Id: I531c19a2139bf1e1a2d307997e1ed01c33b50249
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-04-11 14:54:21 +02:00
Kai Koehne
bf2300a1cd Don't hard-code version in sources
Change-Id: I1a1f3a22d7360f9a9e8036c76b721aa740e612e9
Reviewed-by: Niels Weber <niels.weber@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-02-14 13:11:55 +01:00
kh1
afaf3fcbd9 Add --binarydatafile argument to installerbase.
Task-number: QTIFW-214

Simplifies testing an already existing installer or maintenancetool
using a newer installerbase or IFW build.

Change-Id: I11df629614eb1c2c15ecc28af37d8e40b5173a79
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-02-07 10:51:39 +01:00
Niels Weber
aa37d582dc Add 2013 to the copyright.
Change-Id: If64730ba7203d1a910a426c0d9c9a738ecfeff4b
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2013-02-05 11:24:14 +01:00
Sergio Ahumada
8f4053db30 Change copyright headers from Nokia to Digia
Change-Id: Id55a71a6ee24b234739b6066e11e9c1f2e389f73
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
2012-12-21 22:25:29 +01:00
kh1
3cae873f95 Fix 207cfebb778b.
Obviously there was a problem with the indexOf call. Also once we
omit the -i, the input could be -o or even worse the output path.

Change-Id: I60a970c7e2857195e214cf2441d87468d297a7c2
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2012-11-20 16:16:18 +01:00
kh1
311045065e Some changes to start compile with Qt5.
Change-Id: Ie6a3ba7b3c0b24fc292d0d7444ae920dfa866a54
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2012-11-20 10:40:47 +01:00
kh1
207cfebb77 Implement cmd option to dump binary content into given dir.
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>
2012-11-14 12:06:25 +01:00
kh1
cd40c7dc73 Move help switch further up, so it's allways available.
Change-Id: I3a8b2ae4b7445ba5ca6ab93f10e57e9fc1928a7b
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2012-11-14 12:02:06 +01:00
Pasi Matilainen
830522f3a2 Store installer data in a separate file on Mac to support code signing
Code signing fails on Mac OS X if there's any extra data after the
link edit segment in a binary, so store the installer data in a separate
file inside the bundle.

Task-number: QTIFW-153
Change-Id: Ie1edf21212b4a3bc5b6f32eea3f5d61e8800a0d5
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Simo Fält <simo.falt@digia.com>
Reviewed-by: Niels Weber <niels.weber@digia.com>
2012-09-26 14:42:45 +02:00
kh1
92948d7ff3 Add new commandline argument.
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>
2012-08-17 12:54:59 +02:00
Niels Weber
0188b08e8d Make all Ubuntu versions use cleanlooks style.
Doesn't make any sense to limit this to specific versions as
the old ones go away anyway and all new ones exhibit this
issue.

Change-Id: I20fb4d13f2d1933c92fa09727f3d467d5210d24f
Reviewed-by: Rainer Keller <rainer.keller@nokia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-08-03 09:59:35 +02:00
Tim Jenssen
cf6ac7ea81 add the installer create datetime to --version
- binarycreate patches the installerbase to add the installer create datetime
  - output is now:
Installer creation time 2012-06-08 - 17:39:43
IFW Version: "1.0.0", Installer base SHA1: "7031ecf", Build date: "Jun  8 2012".

Change-Id: I8f82c6942eefaf49e5ad8605577a0034a7502a6c
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
2012-06-12 09:54:09 +02:00
Tim Jenssen
29cf8564aa now we can setTempRepositories from script side
- this makes testing with autoscript more convenient

Change-Id: I93e25570cd9f2b1431412a601476947fc9a046d9
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-04-27 16:23:29 +02:00
Niels Weber
32b8b1c99d remove allowMaintenanceTool check
Change-Id: Ibb6d0757137bef2e381030d2b6baf5f2460d3439
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-04-27 11:43:53 +02:00
Niels Weber
8fde1a8c64 also use cleanlooks on ubuntu 12.04
Change-Id: Iea79be86fb5b5e552b8b8473d432ff45ecd3b5d9
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
2012-04-02 13:05:04 +02:00
kh1
be3b47d0d5 Reorganize the tree, have better ifw.pri. Shadow build support.
Change-Id: I01fb12537f863ed0744979973c7e4153889cc5cb
Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
2012-03-19 16:14:04 +01:00