Commit Graph

7 Commits

Author SHA1 Message Date
Colin Walters
2bc8d7cccb upgrader: Prune pkgcache repo
Until now, we weren't pruning the pkgcache repo at all.  I ran out of
space in the root partition in my CAHC vagrant test box, so it's time
to fix this.

The basic algorithm is to walk over the full rpmdb contents of each
root, generate a set of "currently referenced" cached refs, then delete
any refs in the pkgcache repo which aren't included.  Then, do a prune
of the pkgcache repo.

While we're here, factor out a `sysroot_upgrader_cleanup()` function
which does all of the cleanup.  The idea is at some point we need to
introduce an `rpm-ostree cleanup` command or so which calls this, to
handle the case where the system is interrupted post-deploy but
pre-clean.

Closes: https://github.com/projectatomic/rpm-ostree/issues/428

Closes: #437
Approved by: jlebon
2016-08-30 19:53:24 +00:00
Jonathan Lebon
ead1ecdd23 package layering: major rework
- Move the package layering logic away from pkg-add and into the
  upgrader
- Add pkg-delete
- Add dry-run option

Closes: #289
Approved by: cgwalters
2016-05-27 22:18:44 +00:00
Colin Walters
d0c46812a5 TODO: Update 2014-03-31 16:33:05 -04:00
Colin Walters
3e3dd1f3ef TODO: Expand a bit 2014-03-28 20:41:39 -04:00
Colin Walters
033f3fb534 TODO: Add two more bits 2014-02-15 17:08:40 -05:00
Colin Walters
c1c25267ce TODO: We now have screenshots 2014-02-13 08:38:24 -05:00
Colin Walters
8635e020dc TODO: Add list of things to do 2014-02-08 12:49:37 -05:00