[PATCH 0/3] Preliminaries for headerless install callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch series removes anaconda's reliance on full rpm headers
being available in the install callback.

Traditionally yum has used (rpm-header, path) tuple as the "key" for
callback to locate the package to-be-installed, but this has the
downside of keeping the full rpm headers of all installed packages
to be loaded throughout the entire transaction, wasting (tens of)
megabytes of memory when it only really needs is nevra info to locate
the relevant yum package object.

Changing the data yum passes to callback needs to be an opt-in behavior
to keep backwards compatibility for users who expect the full header.
The details of it are being hashed out currently on yum-devel so it'll
need another patch to actually make anaconda use it. In the meanwhile,
these patches should be safe to apply already and cause no change
of behavior, regardless of what happens in the yum-side of things.

Panu Matilainen (3):
  Remove unused doneFiles counting from transaction callback
  Test for stringiness instead of explicit rpm.hdr class in install
    callback
  Get size + summary from yum package object instead of callback key

 pyanaconda/yuminstall.py |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

-- 
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux