* APT-DBUS: Exit if the cache cannot be opened
This commit is contained in:
parent
a183631ae3
commit
3365491597
@ -408,12 +408,14 @@ class PackageKitAptBackend(PackageKitBaseBackend):
|
||||
except:
|
||||
self.ErrorCode(ERROR_NO_CACHE, "Package cache could not be opened")
|
||||
self.Finished(EXIT_FAILED)
|
||||
self.Exit()
|
||||
return
|
||||
self.doUnlock()
|
||||
if self._cache._depcache.BrokenCount > 0:
|
||||
self.ErrorCode(ERROR_INTERNAL_ERROR,
|
||||
"Not all dependecies can be satisfied")
|
||||
self.Finished(EXIT_FAILED)
|
||||
self.Exit()
|
||||
return
|
||||
|
||||
def get_id_from_package(self, pkg, installed=False):
|
||||
|
Loading…
Reference in New Issue
Block a user