Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 465730

Summary: app-portage/layman does not handle multiple description fields
Product: Gentoo Linux Reporter: Brian Dolbec <dolsen>
Component: [OLD] DevelopmentAssignee: Layman Overlay Manager project <layman>
Status: RESOLVED FIXED    
Severity: enhancement CC: twitch153
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 375789    

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