Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37921 - etcat -v pattern crashes when pattern starts with a number
Summary: etcat -v pattern crashes when pattern starts with a number
Status: RESOLVED DUPLICATE of bug 32871
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-11 17:22 UTC by Henning Schild
Modified: 2005-07-17 13:06 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 Henning Schild 2004-01-11 17:22:04 UTC
[  I] app-portage/gentoolkit-0.1.38

etcat -v 3ddesk
[ Results for search key : 3ddesk ]
Traceback (most recent call last):
  File "/usr/bin/etcat", line 1105, in ?
    main()
  File "/usr/bin/etcat", line 1101, in main
    function(query)
  File "/usr/bin/etcat", line 503, in versions
    print "[ Applications found : " + white(str(len(matches))) + " ]"
UnboundLocalError: local variable 'matches' referenced before assignment


etcat -v 2
[ Results for search key : 2 ]
Traceback (most recent call last):
  File "/usr/bin/etcat", line 1105, in ?
    main()
  File "/usr/bin/etcat", line 1101, in main
    function(query)
  File "/usr/bin/etcat", line 503, in versions
    print "[ Applications found : " + white(str(len(matches))) + " ]"
UnboundLocalError: local variable 'matches' referenced before assignment



Reproducible: Always
Steps to Reproduce:
1.emerge sync
2.emerge gentoolkit
3.etcat -v 1
Actual Results:  
[ Results for search key : 1 ] 
Traceback (most recent call last): 
  File "/usr/bin/etcat", line 1105, in ? 
    main() 
  File "/usr/bin/etcat", line 1101, in main 
    function(query) 
  File "/usr/bin/etcat", line 503, in versions 
    print "[ Applications found : " + white(str(len(matches))) + " ]" 
UnboundLocalError: local variable 'matches' referenced before assignment 
 

Expected Results:  
find all ebuild's containing "1"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-01-11 18:21:54 UTC

*** This bug has been marked as a duplicate of 32871 ***