bugs: smart on fc5
Darko Veberic
darko.veberic at p-ng.si
Wed Apr 12 07:27:24 PDT 2006
Gustavo Niemeyer wrote:
>> if hasdescription:
>> desc = info.getDescription()
>> if desc:
>> for pattern in hasdescription:
>> if pattern.search(desc):
>> newpackages[pkg] = True
>
> Are you able to tell why this is needed? The default description is
> an empty string, which should work fine with the logic currently
> there.
no, the return from info.getDescription() is None in some cases... but
you are right: maybe the info class should return an empty string.
>> if self.opts.show_summary:
>> info = pkg.loaders.keys()[0].getInfo(pkg)
>> print "-", info.getSummary().encode('utf-8')
>
> This shouldn't be needed if your terminal is correctly setup either.
>
> Smart will convert these strings to the preferred encoding
> automatically (converting straight to utf-8 would break anyone
> that doesn't use it).
well that is somehow awkward, don't you think? i have not seen any
command-line programs that stop working if your terminal does not have
some capability. without .encode() smart info just stops with an error.
i know practically nothing about python. i do these changes in order to
keep the thing running. maybe smart should look into LC_CTYPE and
decide... i am using smart in console and i would like that it works
there in the future. gui is just too clumsy...
^C,
--
darko.
Dr. Darko Veberic ------------------
Laboratory for Astroparticle Physics
University of Nova Gorica
Vipavska 13, POB 301
SI-5001 Nova Gorica, Slovenia
mobile: +386 41 860 861
phone: +386 5 3315 255
fax: +386 5 3315 240
------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darko.veberic.vcf
Type: text/x-vcard
Size: 383 bytes
Desc: not available
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20060412/86e63668/attachment-0003.vcf>
More information about the Smart
mailing list