src/packagemanager.py
changeset 539 7486304966c5
parent 537 3dc9fc9b5fee
child 543 9889330c2ab5
--- a/src/packagemanager.py	Thu Sep 18 16:07:25 2008 -0500
+++ b/src/packagemanager.py	Fri Sep 19 18:20:07 2008 -0500
@@ -55,6 +55,7 @@
         pygtk.require("2.0")
 except ImportError:
         sys.exit(1)
+import pkg.client.history as history
 import pkg.client.image as image
 import pkg.client.progress as progress
 import pkg.misc as misc
@@ -1067,7 +1068,6 @@
                 try:
                         # We will use whatever the incorporation provides as the latest 
                         # version of ipkg and ipkg-gui
-                        
                         img.make_install_plan([self.ipkg_fmri, self.ipkggui_fmri], \
                             self.pr, filters = [], noexecute = True)
                 except RuntimeError:
@@ -1075,7 +1075,7 @@
 
                 if img.imageplan.nothingtodo():
                         return True                
-                        
+
                 return False
 
 
@@ -1203,9 +1203,11 @@
                                 print self._('%s is not valid root image, return None') \
                                     % dr
                                 image_obj = None
-                return image_obj
 
+                # Tell the image the name of the client performing operations.
+                image_obj.history.client_name = "packagemanager"
 
+                return image_obj
 
         def __get_image_from_directory(self, image_obj, progressdialog_progress):
                 """ This method set up image from the given directory and