Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43422 - "equery files": adds a "--filter=<rules>" local option
Summary: "equery files": adds a "--filter=<rules>" local option
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:
 
Reported: 2004-03-01 15:06 UTC by TGL
Modified: 2004-10-10 15:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
equery--files-filter.patch (equery--files-filter.patch,4.02 KB, patch)
2004-03-01 15:08 UTC, TGL
Details | Diff
equery-0.2.0_pre9--files_filter.patch (equery-0.2.0_pre9--files_filter.patch,5.41 KB, patch)
2004-09-28 11:37 UTC, TGL
Details | Diff
equery.1--files_filter.patch (equery.1--files_filter.patch,892 bytes, patch)
2004-09-28 11:38 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2004-03-01 15:06:05 UTC
Hi,

Here is a patch that implement a new option to filter the "equery files" output. Usage is "equery files --filter=<rules> pkgspec", where <rules> is the comma separated list of elements types you want to output. Elements types can be:

 - "dir", "obj", "sym", "dev", "fifo": just like in portage CONTENTS files.

 - "path": this are directories where there was actually some files installed. Much shorter than "dir" for almost the same information.

 - "conf": this are configuration files of a package, based on CONFIG_PROTECT.

 - "cmd": this are commands provided by a package, based on your $PATH.

I've wrote this because when i install a new software i don't know, i often wonder "where did it put its files", "where am i supposed to configure it", and "how do i launch it".


Examples:

% equery files --filter=dir galeon
Searching for packages matching 'galeon'...
Contents of net-www/galeon-1.2.13:
/etc
/etc/gconf
/etc/gconf/schemas
/etc/sound
/etc/sound/events
/usr
/usr/bin
/usr/lib
/usr/lib/galeon
/usr/lib/galeon/components
/usr/share
/usr/share/doc
/usr/share/doc/galeon-1.2.13
/usr/share/galeon
/usr/share/galeon/spinners
/usr/share/galeon/spinners/crashcut
/usr/share/galeon/spinners/galeon
/usr/share/galeon/spinners/pipeon
/usr/share/galeon/themes
/usr/share/galeon/themes/Aquatic
/usr/share/galeon/themes/GnomeLarge
/usr/share/galeon/themes/Micro
/usr/share/galeon/themes/Remembrance
/usr/share/gnome
/usr/share/gnome/apps
/usr/share/gnome/apps/Internet
/usr/share/gnome/help
/usr/share/gnome/help/galeon-manual
/usr/share/gnome/help/galeon-manual/C
/usr/share/gnome/help/galeon-manual/C/figures
/usr/share/gnome/help/galeon-manual/C/stylesheet-images
/usr/share/gnome/ui
/usr/share/locale
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/man
/usr/share/man/man1
/usr/share/oaf
/usr/share/omf
/usr/share/omf/galeon
/usr/share/pixmaps
/usr/share/sounds
/usr/share/sounds/galeon
/var
/var/lib

% equery files --filter=path galeon
Searching for packages matching 'galeon'...
Contents of net-www/galeon-1.2.13:
/etc/gconf/schemas
/etc/sound/events
/usr/bin
/usr/lib/galeon/components
/usr/share/doc/galeon-1.2.13
/usr/share/galeon
/usr/share/gnome/apps/Internet
/usr/share/gnome/help/galeon-manual/C
/usr/share/gnome/ui
/usr/share/locale/fr/LC_MESSAGES
/usr/share/man/man1
/usr/share/oaf
/usr/share/omf/galeon
/usr/share/pixmaps
/usr/share/sounds/galeon

% equery files --filter=conf galeon
Searching for packages matching 'galeon'...
Contents of net-www/galeon-1.2.13:
/etc/gconf/schemas/galeon.schemas
/etc/sound/events/galeon.soundlist

% equery files --filter=cmd galeon
Searching for packages matching 'galeon'...
Contents of net-www/galeon-1.2.13:
/usr/bin/galeon
/usr/bin/galeon-bin
/usr/bin/galeon-config-tool


Reproducible: Always
Steps to Reproduce:
Comment 1 TGL 2004-03-01 15:08:22 UTC
Created attachment 26688 [details, diff]
equery--files-filter.patch

Patch is against /usr/bin/equery from app-portage/gentoolkit-0.2.0_pre6.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-08-28 03:04:40 UTC
Will look at it.
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-09-10 02:49:06 UTC
It looks good. Will apply. Thanks!
Comment 4 TGL 2004-09-28 11:37:19 UTC
Created attachment 40644 [details, diff]
equery-0.2.0_pre9--files_filter.patch

Here is an updated patch for gentoolkit-0.2.0_pre9.
I've also added three more filters ("doc", "man" and "info").
Comment 5 TGL 2004-09-28 11:38:36 UTC
Created attachment 40645 [details, diff]
equery.1--files_filter.patch

And here is a patch for the manpage.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-10-10 15:57:38 UTC
should be fixed in gentoolkit-0.2.0_pre10