diff options
author | Katja Marttila <katja.marttila@qt.io> | 2021-01-22 14:50:16 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2021-02-05 09:07:04 +0200 |
commit | 5aee36b74eb1d7613ea0108971e8a22f8dca8101 (patch) | |
tree | 30842cc3b88483c18facd2510ed7c5e3d0a0f138 /src/libs/kdtools | |
parent | a7b0eead83379d9343429a37efa8e39f924e8525 (diff) |
Try rerunning execute operation
Execute operation can have hard coded paths to program which is
executed. In case the program is relocated, UNDO operation will fail as
it will not find the program. Implemented new XXXX_OLD value which can
be used for overwriting the hardcoded value. In case the program
execution fails, program is tried to launch again with the replaced
value.
Task-number: QTIFW-2125
Change-Id: I446a4c423e53cc4ffc6e5e25617d2400945ac3d9
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/kdtools')
-rw-r--r-- | src/libs/kdtools/updateoperation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/kdtools/updateoperation.h b/src/libs/kdtools/updateoperation.h index e05fc34d2..a8110791c 100644 --- a/src/libs/kdtools/updateoperation.h +++ b/src/libs/kdtools/updateoperation.h @@ -53,6 +53,12 @@ public: UserDefinedError = 128 }; + enum OperationType { + Backup, + Perform, + Undo + }; + explicit UpdateOperation(QInstaller::PackageManagerCore *core); virtual ~UpdateOperation(); |