[packagekit] packagekit: Branch 'master' - 2 commits
Richard Hughes
hughsient at kemper.freedesktop.org
Sun Oct 7 23:46:50 PDT 2007
TODO | 5 +++++
backends/conary/helpers/conaryBackend.py | 20 +++++++++++++++++---
2 files changed, 22 insertions(+), 3 deletions(-)
New commits:
diff-tree 07073e9ccb7e0ca69a785dda38b705dfd94d317e (from 6d2969fa6f998725be80dab07710eb124ee49c1c)
Author: Ken VanDine <ken at vandine.org>
Date: Sun Oct 7 21:40:51 2007 -0400
Return proper status for get_updates
diff --git a/backends/conary/helpers/conaryBackend.py b/backends/conary/helpers/conaryBackend.py
index f59f5d6..5eb2d12 100644
--- a/backends/conary/helpers/conaryBackend.py
+++ b/backends/conary/helpers/conaryBackend.py
@@ -254,6 +254,22 @@ class PackageKitConaryBackend(PackageKit
else:
self.error(ERROR_INTERNAL_ERROR,'Package was not found')
+ def _show_package(self,name, version, flavor, status):
+ ''' Show info about package'''
+ id = self.get_package_id(name, version, flavor)
+ summary = ""
+ self.package(id, status, summary)
+
+ def _get_status(self,notice):
+ # We need to figure out how to get this info, this is a place holder
+ #ut = notice['type']
+ # TODO : Add more types to check
+ #if ut == 'security':
+ # return INFO_SECURITY
+ #else:
+ # return INFO_NORMAL
+ return INFO_NORMAL
+
def get_updates(self):
self.percentage()
try:
@@ -273,9 +289,7 @@ class PackageKitConaryBackend(PackageKit
troveTuple.append(name)
troveTuple.append(version)
installed = self.check_installed(troveTuple)
- id = self.get_package_id(name, version, flavor)
- summary = ""
- self.package(id, installed, summary)
+ self._show_package(name, version, flavor, INFO_NORMAL)
except:
pass
diff-tree 6d2969fa6f998725be80dab07710eb124ee49c1c (from 6262e85f79900e02cb37909c50d473b020c8a7ac)
Author: Richard Hughes <richard at hughsie.com>
Date: Sun Oct 7 23:05:38 2007 +0100
update TODO
diff --git a/TODO b/TODO
index 86da67d..c47e48e 100644
--- a/TODO
+++ b/TODO
@@ -26,6 +26,11 @@ RepoSetData(s=rid,s=data,s=value)
Use an icons for installed and not-installed rather than tickboxes
Refresh the query list after an install or remove (means saving the query and re-issuing)
+*** Client library has to be able to re_issue ***
+Need to save PkRole
+Need to save data in xcache (copy from pk-engine)
+We should refresh the search after an install in pk-application
+
*** Prepare download to refresh system ***
Either use a flag or a new method. I'm not sure which yet.
More information about the PackageKit
mailing list