bugs: smart on fc5
Darko Veberic
darko.veberic at p-ng.si
Wed Apr 12 01:57:25 PDT 2006
hi,
there are currently 3 places where the smart sources have to be edited
in order to get search, query and info working on fedora core 5:
(1) query.py, line 281:
if hasdescription:
for pattern in hasdescription:
if pattern.search(info.getDescription()):
newpackages[pkg] = True
should be changed into:
if hasdescription:
desc = info.getDescription()
if desc:
for pattern in hasdescription:
if pattern.search(desc):
newpackages[pkg] = True
(2) query.py, line 504:
if self.opts.show_summary:
info = pkg.loaders.keys()[0].getInfo(pkg)
print "-", info.getSummary()
should be changed into:
if self.opts.show_summary:
info = pkg.loaders.keys()[0].getInfo(pkg)
print "-", info.getSummary().encode('utf-8')
(3) info.py, line 128:
print _("Summary:"), info.getSummary()
print _("Description:")
for line in info.getDescription().splitlines():
line = line.strip()
if not line:
line = "."
print "", line
should be changed into:
print _("Summary:"), info.getSummary().encode('utf-8')
print _("Description:")
desc = info.getDescription()
if desc:
for line in desc.splitlines():
line = line.strip()
if not line:
line = "."
print "", line.encode('utf-8')
best,
--
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/3bcde91b/attachment-0002.vcf>
More information about the Smart
mailing list