src/packagemanager.py
changeset 556 1c3526ca7b9e
parent 543 9889330c2ab5
child 560 4c8d82d58131
--- a/src/packagemanager.py	Tue Sep 30 17:59:56 2008 -0500
+++ b/src/packagemanager.py	Tue Sep 30 19:37:17 2008 -0500
@@ -917,10 +917,17 @@
                         gobject.idle_add(self.__update_package_info, pkg, icon,
                             True, None)
                 man = None
+                img.history.operation_name = "info"
                 try:
                         man = img.get_manifest(pkg, filtered = True)
                 except IOError:
                         man = "NotAvailable"
+                        img.history.operation_result = \
+                            history.RESULT_FAILED_STORAGE
+                except:
+                        img.history.operation_result = \
+                            history.RESULT_FAILED_UNKNOWN
+
                 if cmp(self.pkginfo_thread, pkg) == 0:
                         if not pkg:
                                 gobject.idle_add(self.__update_package_info, pkg, icon, \
@@ -928,7 +935,11 @@
                         else:
                                 gobject.idle_add(self.__update_package_info, pkg, icon, \
                                     True, man)
+                        img.history.operation_result = \
+                            history.RESULT_SUCCEEDED
                 else:
+                        img.history.operation_result = \
+                            history.RESULT_SUCCEEDED
                         return
 
         # This function is ported from pkg.actions.generic.distinguished_name()
@@ -1672,6 +1683,8 @@
                 for the particular version (local operation only), if the package is 
                 not installed than the newest one'''
                 self.description_thread_running = True
+                img = self.image_o
+                img.history.operation_name = "info"
                 for pkg in self.application_list:
                         if self.cancelled:
                                 self.description_thread_running = False
@@ -1698,6 +1711,7 @@
                         # XXX workaround, this should be done nicer
                         gobject.idle_add(self.update_desc, info, pkg, package)
                         time.sleep(0.01)
+                img.history.operation_result = history.RESULT_SUCCEEDED
                 self.description_thread_running = False
                 
         def update_statusbar(self):