Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347051 - Feature request: portage should have a flag to list plain atoms
Summary: Feature request: portage should have a flag to list plain atoms
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 13:14 UTC by M. B.
Modified: 2016-02-24 10:49 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 M. B. 2010-11-28 13:14:30 UTC
In the past I found myself occasionally trying to mangle the list of packages portage wants to install via the commandline. For this to work with sed, grep, and awk, the emerge command should be able to print a (ba)sh-usable list of plain "valid atoms".

Usage scenario: Consider  emerge -e world, or any other major emerge-operation, such as re-using an existing world-file on a new install. After the 307th package, some minor tool fails. (diffutils in my case). --skipfirst doesn't work together with --resume, since using --resume is semi-random, especially with EMERGE_DEFAULT_OPTS=-jX with X>1. --keep-going is not really an option either, especially if the system is not fully sane. Emerge would simply omit major parts of its task-list just because a minor package is broken or doesn't build.

Having an option as i propose it would enable me to do an "emerge -p --resume --plain-atoms | sed '/br0ken-pkg/d'" instead of having to do a ridiculous amount of seding/grepping/and whatsoever to get rid of the pretty-ascii-printing. A second option --plain-full-atoms could be used for displaying the full atoms with version info (like =category/package-version::repository).
Comment 1 Zac Medico gentoo-dev 2010-11-28 19:51:57 UTC
(In reply to comment #0)
> Having an option as i propose it would enable me to do an "emerge -p --resume
> --plain-atoms | sed '/br0ken-pkg/d'"

You might get a similar effect by using --exclude together with --resume.
Comment 2 M. B. 2016-02-24 10:49:29 UTC
-# and -*