From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LW1ss-00033R-Ug for garchives@archives.gentoo.org; Sun, 08 Feb 2009 05:07:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38498E0427; Sun, 8 Feb 2009 05:07:09 +0000 (UTC) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by pigeon.gentoo.org (Postfix) with ESMTP id 0C6B5E0427 for ; Sun, 8 Feb 2009 05:07:08 +0000 (UTC) Received: by wf-out-1314.google.com with SMTP id 29so1478698wff.10 for ; Sat, 07 Feb 2009 21:07:08 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.142.153.8 with SMTP id a8mr2058941wfe.152.1234069628618; Sat, 07 Feb 2009 21:07:08 -0800 (PST) Date: Sun, 8 Feb 2009 14:07:08 +0900 Message-ID: Subject: [gentoo-portage-dev] equery: deprecate --category filtering in belongs From: Douglas Anderson To: gentoo-portage-dev@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: a0d51baf-b7a1-4f1b-8aac-322cdeb866d7 X-Archives-Hash: d334353b62098cf627bd38cb23483777 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