Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286475 - sys-apps/portage-2.2_rc42: dispatch-conf has unicode issues
Summary: sys-apps/portage-2.2_rc42: dispatch-conf has unicode issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks:
 
Reported: 2009-09-26 05:14 UTC by Erik Zeek
Modified: 2009-10-04 00:19 UTC (History)
0 users

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


Attachments
emerge --info (emerge_info.txt,9.97 KB, text/plain)
2009-09-26 05:15 UTC, Erik Zeek
Details
fix the AttributeError (attributeerror.patch,413 bytes, patch)
2009-09-26 07:34 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2009-09-26 05:14:29 UTC
When running dispatch-conf I get the following:

> dispatch-conf
Last login: Fri Sep 25 22:49:32 MDT 2009 from jorj on pts/11
Traceback (most recent call last):
  File "/usr/sbin/dispatch-conf", line 430, in <module>
    d.grind (portage.settings ['CONFIG_PROTECT'])
  File "/usr/sbin/dispatch-conf", line 82, in grind
    self.options = portage.dispatch_conf.read_config(MANDATORY_OPTS)
  File "/usr/lib/portage/pym/portage/dispatch_conf.py", line 32, in read_config
    opts, errors = loader.load()
  File "/usr/lib/portage/pym/portage/env/loaders.py", line 162, in load
    func(line, line_num, data, errors)
  File "/usr/lib/portage/pym/portage/env/loaders.py", line 321, in lineParser
    data[key].append(value)
AttributeError: 'unicode' object has no attribute 'append'

> emerge -pv sys-apps/portage python

These are the packages that would be merged, in order:

Calculating dependencies                                ... done!
[ebuild   R   ] sys-apps/portage-2.2_rc42  USE="doc -build -epydoc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild   R   ] dev-lang/python-3.1.1-r1  USE="doc examples gdbm ipv6 ncurses readline sqlite ssl threads tk ucs2 xml -build -wininst" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Comment 1 Erik Zeek 2009-09-26 05:15:18 UTC
Created attachment 205260 [details]
emerge --info

For completeness...
Comment 2 Zac Medico gentoo-dev 2009-09-26 07:34:39 UTC
Created attachment 205268 [details, diff]
fix the AttributeError

If this patch is saved as /tmp/attributeerror.patch, then it can be applied as follows:

  patch /usr/lib/portage/pym/portage/env/loaders.py /tmp/attributeerror.patch
Comment 3 Erik Zeek 2009-09-26 12:42:05 UTC
(In reply to comment #2)
> Created an attachment (id=205268) [edit]
> fix the AttributeError
> 
> If this patch is saved as /tmp/attributeerror.patch, then it can be applied as
> follows:
> 
>   patch /usr/lib/portage/pym/portage/env/loaders.py /tmp/attributeerror.patch
> 

That seems to have fixed it.  Thanks!
Comment 4 Zac Medico gentoo-dev 2009-10-04 00:19:41 UTC
This is fixed in 2.2_rc43.