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

Bug 230525

Summary: sys-apps/portage: `portageq vdb_path` doesn't work with Python 2.6
Product: Portage Development Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor CC: jer
Priority: High Keywords: InVCS, REGRESSION
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 230205    

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-02 14:47:24 UTC
# module-rebuild
Traceback (most recent call last):
  File "/usr/bin/portageq", line 511, in <module>
main()
  File "/usr/bin/portageq", line 488, in main
retval = function(sys.argv[2:])
  File "/usr/bin/portageq", line 297, in vdb_path
print portage.root+portage.VDB_PATH
TypeError: unsupported operand type(s) for +: '_LegacyGlobalProxy' and 'str'
module-rebuild [options] action [category/package]
Version: 0.5

Where options are:
        -X       - Emerge based on package names,
                   not exact versions.
        -C       - Disable all coloured output.

Where action is one of:
        add      - Add package to moduledb.
        del      - Delete a package from moduledb.
        toggle   - Toggle auto-rebuild of Package.
        list     - List packages to auto-rebuild.
        rebuild  - Rebuild packages.
        populate - Populate the database with any
                   packages which currently install
                   drivers into the running kernel.

#
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-07-03 15:29:46 UTC
The bug is in `portageq vdb_path`.

$ portageq vdb_path
Traceback (most recent call last):
  File "/usr/bin/portageq", line 511, in <module>
main()
  File "/usr/bin/portageq", line 488, in main
retval = function(sys.argv[2:])
  File "/usr/bin/portageq", line 297, in vdb_path
print portage.root+portage.VDB_PATH
TypeError: unsupported operand type(s) for +: '_LegacyGlobalProxy' and 'str'
$