Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465730 - app-portage/layman does not handle multiple description fields
Summary: app-portage/layman does not handle multiple description fields
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 375789
  Show dependency tree
 
Reported: 2013-04-13 01:20 UTC by Brian Dolbec
Modified: 2019-01-15 16:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Dolbec (RETIRED) gentoo-dev 2013-04-13 01:20:50 UTC
[17:55] <Arfrever> dol-sen: How does layman handle multiple description tags?
[17:56] <dol-sen> hmm, don't know, I'll have to look
[17:56] <dol-sen> I don't think I've run across any
[17:58] <Arfrever> dol-sen: http://www.gentoo.org/proj/en/overlays/repositories.xml contains <description lang="en"> tags in some cases.
[17:59] <Arfrever> dol-sen: Theoretically there could be <description lang="something_else_than_en"> tags.
[18:03] * soooga has quit (Ping timeout: 240 seconds)
[18:04] <dol-sen> hmm, looks like it looks for just the one description in the xml
[18:04] <dol-sen> I'll need to update that :/
[18:05] <dol-sen> _desc = xml.find('description')
[18:05] <dol-sen> will need to do findall()
[18:06] <Arfrever> dol-sen: You can try firstly tag for locale.getlocale()[0] and next tag for locale.getlocale()[0].split("_")[0].
[18:06] <dol-sen> as well as modify the remaining code that handles it
[18:06] <Arfrever> dol-sen: And fallback to "en", next fallback to no lang.
[18:07] <dol-sen> yeah
[18:07] <dol-sen> but it'll still need to store all descriptions
[18:07] <dol-sen> since it is pushed to the installed.xml file

Reproducible: Always