Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170981 - "equery belongs" doesn't find matches for path if it ends with /
Summary: "equery belongs" doesn't find matches for path if it ends with /
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 170220
  Show dependency tree
 
Reported: 2007-03-15 02:29 UTC by R.I.P.
Modified: 2007-03-19 17:48 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 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