From 5aee36b74eb1d7613ea0108971e8a22f8dca8101 Mon Sep 17 00:00:00 2001 From: Katja Marttila Date: Fri, 22 Jan 2021 14:50:16 +0200 Subject: 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 --- src/libs/kdtools/updateoperation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libs/kdtools') 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(); -- cgit v1.2.3