Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523770 - write a list of atoms that have been emerged / were ultimately not emerged
Summary: write a list of atoms that have been emerged / were ultimately not emerged
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 09:24 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-09-26 12:33 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 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-26 09:24:39 UTC
Currently, when something elaborate such as `emerge -e system' fails intermittently, doing a subsequent emerge run for another target clobbers the original target list, so that an `emerge --resume' will then no longer find anything to do.

It seems there is no way to retrieve the 1) original list of atoms or indeed 2) the remaining list of atoms that were going to be emerged. I assume such a list might be retrievable from some database, but no command or documentation seems to point out how to do this.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-09-26 11:00:46 UTC
(In reply to Jeroen Roovers from comment #0)
> It seems there is no way to retrieve the 1) original list of atoms or indeed
> 2) the remaining list of atoms that were going to be emerged.

There are "resume" and "resume_backup" dictionaries in mtimedb (/var/cache/edb/mtimedb).
- "favorites" key with value being a list of atoms requested at command line.
- "mergelist" key with value being a list of lists containing information about remaining packages.

One-line examples:

python -c $'import portage\nresume_dict = portage.mtimedb.get("resume")\nif resume_dict is not None:\n for x in resume_dict["mergelist"]: print(x[2])'

python -c $'import portage\nresume_dict = portage.mtimedb.get("resume_backup")\nif resume_dict is not None:\n for x in resume_dict["mergelist"]: print(x[2])'
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-26 12:33:55 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)
> (In reply to Jeroen Roovers from comment #0)
> > It seems there is no way to retrieve the 1) original list of atoms or indeed
> > 2) the remaining list of atoms that were going to be emerged.
> 
> There are "resume" and "resume_backup" dictionaries in mtimedb
> (/var/cache/edb/mtimedb).
> - "favorites" key with value being a list of atoms requested at command line.
> - "mergelist" key with value being a list of lists containing information
> about remaining packages.
> 
> One-line examples:

Sure, I was aware of that, but this is about exposing that information as text, as an emerge feature.