Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563992 - eresumelist: a small utility for showing Portage's resume list
Summary: eresumelist: a small utility for showing Portage's resume list
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage Tools Team
URL: https://github.com/creideiki/portage/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-24 19:17 UTC by Karl-Johan Karlsson
Modified: 2015-10-24 19:17 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 Karl-Johan Karlsson 2015-10-24 19:17:59 UTC
I often find it useful to look at the resume list, both for monitoring during a long Portage operation and for using as a starting point for hand-building emerge command lines to work around problems (if it worked on the first try it wouldn't be called "unstable", would it? :) ).

"emerge -pv --resume" recalculates dependencies, which takes a long time and is not always what I want. Also, its output format, while nice for human consumption, sucks for automatic processing.

genlop gives very nice information for monitoring, but not for building command lines. And, again, it's focused on output to a human.

Hence, I wrote a small Python script that gropes around in the Portage internals and digs out the resume list, printing it in machine-readable-formats. I currently keep it in my personal Portage overlay on GitHub, at https://github.com/creideiki/portage/blob/master/app-portage/creideiki-gentoo-utils/files/eresumelist .

Do you think such a utility would be useful for other people? If so, would you consider adding it to e.g. gentoolkit?

Sample output:

~ $ eresumelist -h
usage: eresumelist [-h] [-s] [-b]

Print packages that will be installed by "emerge --resume".

optional arguments:
  -h, --help           show this help message and exit
  -s, --strip-version  strip version numbers from package list
  -b, --backup         show the backup resume list

While an emerge operation is running, or the last operation was aborted:

~ $ eresumelist | head -n 5
=x11-libs/goffice-0.8.17-r1
=app-emulation/wine-1.6.2
=sys-apps/shadow-4.1.5.1-r1
=media-gfx/hugin-2014.0.0
=net-misc/openssh-6.9_p1-r2

~ $ eresumelist -s | head -n 5
x11-libs/goffice
app-emulation/wine
sys-apps/shadow
media-gfx/hugin
net-misc/openssh

When the last emerge operation completed successfully:

~ $ eresumelist
No emerge operation to resume

~ $ eresumelist -b | head -n 5
=sys-libs/glibc-2.22-r1
=net-wireless/wireless-regdb-20151022
=sys-devel/autoconf-archive-2015.09.25
=sys-block/di-4.37
=sys-devel/binutils-config-5-r1

Reproducible: Always