src/modules/client/image.py
changeset 568 52eea0be5030
parent 567 ea1d96e269a4
child 573 f77bbd68c975
--- a/src/modules/client/image.py	Mon Oct 06 16:41:21 2008 -0700
+++ b/src/modules/client/image.py	Tue Oct 07 10:20:20 2008 -0700
@@ -1091,9 +1091,8 @@
         def get_version_installed(self, pfmri):
                 """Returns an fmri of the installed package matching the
                 package stem of the given fmri or None if no match is found."""
-                target = pfmri.get_pkg_stem()
                 for f in self.gen_installed_pkgs():
-                        if f.get_pkg_stem() == target:
+                        if self.fmri_is_same_pkg(f, pfmri):
                                 return f
                 return None