[Yum-devel] [PATCH] Include installs in 'data still to download'. BZ 739092.
James Antill
james at fedoraproject.org
Mon Sep 19 15:50:32 UTC 2011
On Mon, 2011-09-19 at 09:26 +0200, Zdeněk Pavlas wrote:
> All 'presto' cares about are updates, the other message
> (Presto reduced the update size) is explicit in this.
>
> So maybe just change the message?
> ---
> yum-presto/presto.py | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/yum-presto/presto.py b/yum-presto/presto.py
> index 169e938..fe81143 100644
> --- a/yum-presto/presto.py
> +++ b/yum-presto/presto.py
> @@ -588,8 +588,11 @@ def predownload_hook(conduit):
> repos = set()
> reposize = {}
> download_pkgs = []
> + install_size = 0
> for po in pkglist:
> if po.state != TS_UPDATE and po.name not in installonlypkgs:
> + if po.state == TS_INSTALL:
> + install_size += po.size
As well as the kernel you need to handle downgrades. This is one of
those, the problems goes away if you just merge it into a single
download loop (and gets the big feature of allowing delta rebuilds while
downloading packages).
More information about the Yum-devel
mailing list