This commit is contained in:
luoxueyi 2021-09-14 15:38:13 +08:00
parent bdb5918f08
commit e9e0179967
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ class UpdateManagerDbusController(dbus.service.Object):
if self.transaction.cancellable == True:
self.transaction.cancel()
status = True
message = "success"
message = "Success"
elif self.transaction == None or self.transaction.cancellable == False:
message = "Can not Cancel"
except Exception as e:
return (status,str(e))
return (status, message)