Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184449 - app-portage/layman doesn't work with repositories containing non-ASCII characters in e. g. description
Summary: app-portage/layman doesn't work with repositories containing non-ASCII charac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gunnar Wrobel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 22:03 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-09-11 15:36 UTC (History)
0 users

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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-06 22:03:16 UTC
# layman -a MY_REPOSITORY
* Running command "/usr/bin/svn co "http://domain.org/MY_REPOSITORY" "/usr/portage/local/layman/MY_REPOSITORY""...
A    /usr/portage/local/layman/MY_REPOSITORY/FILE_A
A    /usr/portage/local/layman/MY_REPOSITORY/FILE_B
...
Checked out revision REVISION_NUMBER.
* Failed to add overlay "MY_REPOSITORY".
* Error was: Failed to write to local overlays file: /usr/portage/local/layman/overlays.xml
* Error was:
* 'ascii' codec can't encode character u'\u014c' in position 13: ordinal not in range(128)


It also broke /usr/portage/local/layman/overlays.xml:
# layman -S
Traceback (most recent call last):
  File "/usr/bin/layman", line 37, in ?
    main()
  File "/usr/bin/layman", line 34, in main
    Actions(Config())
  File "/usr/lib/python2.4/site-packages/layman/action.py", line 397, in __init__
    result += i[1](config).run()
  File "/usr/lib/python2.4/site-packages/layman/action.py", line 89, in __init__
    self.db = DB(config)
  File "/usr/lib/python2.4/site-packages/layman/db.py", line 59, in __init__
    quiet)
  File "/usr/lib/python2.4/site-packages/layman/overlay.py", line 76, in __init__
    self.read_file(path)
  File "/usr/lib/python2.4/site-packages/layman/overlay.py", line 90, in read_file
    self.read(document)
  File "/usr/lib/python2.4/site-packages/layman/overlay.py", line 110, in read
    raise Exception('Failed to parse the overlay list!\nError was:\n'
Exception: Failed to parse the overlay list!
Error was:
no element found: line 56, column 0
Comment 1 Gunnar Wrobel (RETIRED) gentoo-dev 2007-09-11 15:36:34 UTC
Thanks for the note. layman-1.1 is in the tree and this should be fixed.