On 01/18/10 03:42 PM, Padraig O'Briain wrote:
At line 28 of installupdate.py I suggest
'consists of frame' should be'consist of frames'.
Changed.
When I tested it all the packages to be removed in Update All
Confirmation dialog had no descrioptions. Is this just a coincidence?
I need to confirm this, but it looks like bug in the api:
def __update_descriptions(self, to_update, to_install, to_remove):
pkgs_table = to_update.keys() + to_install.keys() + to_remove.keys()
info = None
try:
info = self.api_o.info(pkgs_table, False,
frozenset([api.PackageInfo.SUMMARY,
api.PackageInfo.IDENTITY]))
for info_s in info.get(0):
stem = info_s.pkg_stem
if stem in to_update:
to_update[stem][1] = info_s.summary
elif stem in to_install:
to_install[stem][1] = info_s.summary
elif stem in to_remove:
import pdb
--> pdb.set_trace()
to_remove[stem][1] = info_s.summary
(Pdb) print info_s
pkg://opensolaris.org/[email protected],5.11-0.130:20091219T020809Z
(Pdb) print dir(info_s)
['ACTION_OPTIONS', 'ALL_OPTIONS', 'CATEGORIES', 'DEPENDENCIES',
'DESCRIPTION', 'DIRS', 'EXCLUDES', 'FILES', 'FROZEN', 'HARDLINKS',
'IDENTITY', 'INCORPORATED', 'INSTALLED', 'KNOWN', 'LICENSES', 'LINKS',
'OBSOLETE', 'PREF_PUBLISHER', 'RENAMED', 'SIZE', 'STATE', 'SUMMARY',
'UPGRADABLE', '_PackageInfo__NUM_PROPS', '__class__', '__delattr__',
'__dict__', '__doc__', '__format__', '__getattribute__', '__hash__',
'__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__',
'__weakref__', 'branch', 'build_from_fmri', 'build_release',
'category_info_list', 'dependencies', 'description', 'dirs', 'files',
'fmri', 'hardlinks', 'licenses', 'links', 'packaging_date', 'pkg_stem',
'preferred_publisher', 'publisher', 'size', 'states', 'summary', 'version']
(Pdb) print info_s.summary
(Pdb)
I will investigate and either spin new fixed webrev or log an api bug.