On 01/19/10 01:34, Shawn Walker wrote:
On 01/18/10 11:50 AM, Michal Pryc wrote:
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.

This works fine in the CLI and in the test suite, so there's something unique here. If you can figure out what the underlying issue is and exact steps to reproduce, that would help.


I found 11 packages to be deleted:

SUNWgnome-a11y-python24
SUNWipkg-gui-l10n
SUNWlp-cmds
SUNWlp-cmds
SUNWpcmcu
SUNWpcmem
SUNWsfdoc
SUNWsfman
SUNWsfinf
SUNWsfhea
SUNWxorg-cfg

9 of these have no summary in GUI or cli but 2 do:

SUNWpcmcu
SUNWpcmem


These two ought to have a summary displayed.

Padraig

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to