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

Bug 170981

Summary: "equery belongs" doesn't find matches for path if it ends with /
Product: Portage Development Reporter: R.I.P. <riphome>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: enhancement Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 170220    

Description R.I.P. 2007-03-15 02:29:42 UTC
"equery belongs some_path" doesn't find any matches if some_path is a path which ends with a '/'

this is not convenient since bash completion for pathes automatically adds a slash at the end.




Reproducible: Always

Actual Results:  
$ equery belongs /usr/src/linux-2.6.19-gentoo-r7/
[ Searching for file(s) /usr/src/linux-2.6.19-gentoo-r7/ in *... ]



Expected Results:  
$ equery belongs /usr/src/linux-2.6.19-gentoo-r7/
[ Searching for file(s) /usr/src/linux-2.6.19-gentoo-r7/ in *... ]
sys-kernel/gentoo-sources-2.6.19-r7 (/usr/src/linux-2.6.19-gentoo-r7)
Comment 1 Paul Varner (RETIRED) gentoo-dev 2007-03-15 03:36:48 UTC
$ svn commit -m "Trim trailing slash from query for equery belongs command (Bug #170981)"
Sending        ChangeLog
Sending        src/equery/equery
Transmitting file data ..
Committed revision 357.

Thanks for the idea.  The fix I just committed will strip a trailing slash from the path by default. Using the --full-regex option will cause it to still search with the trailing slash.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2007-03-19 17:48:29 UTC
Fixed in gentoolkit-0.2.4_pre2