public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] equery: deprecate --category filtering in  belongs
@ 2009-02-08  5:07 Douglas Anderson
  2009-02-08  5:21 ` Brian Harring
  2009-02-08  6:30 ` Brian Harring
  0 siblings, 2 replies; 6+ messages in thread
From: Douglas Anderson @ 2009-02-08  5:07 UTC (permalink / raw
  To: gentoo-portage-dev

Hi, does anyone use --category filtering in equery belongs? I want to
get rid of it, or at least deprecate it. My reasoning:

* We use 'equery belongs' when don't know to what package a file
belongs. Even if we have a suspicion, most users would have to look up
the category of the package before typing it in.
* Even if you happen to know the exact category of the package that
installed the file (why are you using belongs?), typing
--category=app-portage takes more time than is saved by filtering by
category (about 5 seconds more by my unscientific test).

Even in a script setting, I see no use for this. The time saved is minuscule:

$ time equery belongs /usr/bin/equery --category app-portage
[ Searching for file(s) /usr/bin/equery in app-portage... ]
app-portage/gentoolkit-0.2.4.2-r1 (/usr/bin/equery)

real    0m4.002s
user    0m3.680s
sys     0m0.076s
$ time equery belongs /usr/bin/equery
[ Searching for file(s) /usr/bin/equery in *... ]
app-portage/gentoolkit-0.2.4.2-r1 (/usr/bin/equery)

real    0m4.205s
user    0m3.738s
sys     0m0.102s


* Lastly, it's confusing. belongs takes a filename as input, but you
can filter by category? All other modules that take can filter by
category take a pkgspec.

-Doug



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-09  2:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-08  5:07 [gentoo-portage-dev] equery: deprecate --category filtering in belongs Douglas Anderson
2009-02-08  5:21 ` Brian Harring
2009-02-08  6:30 ` Brian Harring
2009-02-08  7:05   ` Douglas Anderson
2009-02-08 16:11     ` Michael A. Smith
2009-02-09  2:26       ` Douglas Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox