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

Bug 307647

Summary: app-portage/gentoolkit-0.3.0_rc9 bad exception handling
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: New packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 237964    

Description Patrick Lauer gentoo-dev 2010-03-03 17:26:22 UTC
$ equery f /etc/hosts 
Traceback (most recent call last):
  File "/usr/bin/equery-2.6", line 35, in <module>
    equery.main()
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/__init__.py", line 343, in main
    loaded_module.main(module_args)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/equery/files.py", line 304, in main
    matches = do_lookup(query, QUERY_OPTS)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/helpers.py", line 417, in do_lookup
    matches = _do_simple_lookup(query, simple_package_finder, query_opts)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/helpers.py", line 478, in _do_simple_lookup
    print_query_info(query, query_opts)
  File "/usr/lib64/python2.6/site-packages/gentoolkit/helpers.py", line 621, in print_query_info
    cat, pkg = split_cpv(query)[:2]
  File "/usr/lib64/python2.6/site-packages/gentoolkit/helpers.py", line 676, in split_cpv
    raise errors.GentoolkitInvalidPackageName(query)
AttributeError: 'module' object has no attribute 'GentoolkitInvalidPackageName'


Oops, using f instead of b makes it crash hard :)
Comment 1 Douglas Anderson 2010-03-04 03:33:25 UTC
Oops, thanks Patrick.

FuzzyRay, fixed in genscripts r243.
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2010-04-06 09:59:38 UTC
This bug has been fixed in app-portage/gentoolkit-0.3.0_rc10, thanks for reporting this issue.