Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115807 - equery: add --direct option to depgraph action
Summary: equery: add --direct option to depgraph action
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: 2005-12-16 13:58 UTC by Paul Varner (RETIRED)
Modified: 2007-03-19 17:48 UTC (History)
2 users (show)

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 Paul Varner (RETIRED) gentoo-dev 2005-12-16 13:58:05 UTC
Add an option to equery depgraph to only display the direct dependencies of the package. The following command partially works, but fails to list direct dependencies that are in themselves a dependency of another dependency.

# equery depgraph kdelibs | egrep '(^ `|^`)'
`-- kde-base/kdelibs-3.5.0
 `-- x11-libs/qt-3.3.4-r8
 `-- kde-base/arts-3.5.0 [ arts ]
 `-- dev-libs/libxslt-1.1.15
 `-- net-dns/libidn-0.5.20
 `-- sys-apps/utempter-0.5.5.6 (virtual/utempter)
 `-- media-libs/jasper-1.701.0 [ jpeg2k ]
 `-- app-text/aspell-0.60.4 [ spell ]
 `-- app-admin/fam-2.7.0-r4 (virtual/fam)
Comment 1 Denilson Sá Maia 2005-12-16 14:18:10 UTC
Just as sidenote: I would like to get the direct deps of kde, so I could pipe it to a script that calls genlop -t on each direct dep and them sums all times, so I could get the total kde merge time. I already have this script, but the kde packages are hardcoded, because I found no simple way to get the direct deps of kde.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-12-16 15:00:45 UTC
(In reply to comment #1)
> Just as sidenote: I would like to get the direct deps of kde, so I could pipe
> it to a script that calls genlop -t on each direct dep and them sums all times,
> so I could get the total kde merge time. I already have this script, but the
> kde packages are hardcoded, because I found no simple way to get the direct
> deps of kde.
> 

whats wrong with 'emerge -p kde | genlop -p' ?
Comment 3 Paul Varner (RETIRED) gentoo-dev 2007-03-10 22:56:13 UTC
$ svn commit -m "Add --depth option to equery depgraph to limit the depth of the dependency graph. (Bug #115807)"
Sending        trunk/ChangeLog
Sending        trunk/src/equery/equery
Sending        trunk/src/equery/equery.1
Transmitting file data ...
Committed revision 355.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2007-03-19 17:48:26 UTC
Fixed in gentoolkit-0.2.4_pre2