Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94124 - should equery look if file exists when using the belong option
Summary: should equery look if file exists when using the belong option
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 16:05 UTC by Jonas Geiregat
Modified: 2005-10-12 23:37 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 Jonas Geiregat 2005-05-26 16:05:05 UTC
I'm just wondering suppose I want to know which package the groups command comes
from. I assume without really checking that the groups file is located in
/sbin/groups, equery belongs /sbin/groups.
I think when using fullpath names equery should first check if the file exists
or not this would save alot of execution time when the file you specified on the
command line can't be located on your system.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-05-26 16:07:53 UTC
What if I deleted an important file but didn't know what package it belonged to? 
How would I figure out what package to reinstall to duplicate the file if not 
for "equery belongs <missing_file>" ?
Comment 2 Jonas Geiregat 2005-05-26 16:29:19 UTC
(In reply to comment #1)
> What if I deleted an important file but didn't know what package it belonged to? 
> How would I figure out what package to reinstall to duplicate the file if not 
> for "equery belongs <missing_file>" ?

In that case you have several options
- present the user with a prompt asking him if he really wants to search a file
that doesn't exists ?
- add an extra option -y to disable this prompt "yes to all"
Comment 3 SpanKY gentoo-dev 2005-05-26 19:31:21 UTC

*** This bug has been marked as a duplicate of 94131 ***
Comment 4 SpanKY gentoo-dev 2005-05-26 19:31:38 UTC
oops, wrong field
Comment 5 Paul Varner (RETIRED) gentoo-dev 2005-10-12 23:37:10 UTC
I am not going to do this for the reasons listed in comment #1