From 2d9527c759f6cca7aaf77cea044b069aa610db55 Mon Sep 17 00:00:00 2001 From: Ladislav Slezak Date: Mon, 10 Sep 2007 13:53:08 +0000 Subject: [PATCH] - fixed disk usage counting of updated packages (#308362) --- package/libzypp.changes | 5 +++++ zypp/DiskUsageCounter.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package/libzypp.changes b/package/libzypp.changes index 5948211..d4c1cfd 100644 --- a/package/libzypp.changes +++ b/package/libzypp.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Sep 10 15:50:49 CEST 2007 - lslezak@suse.cz + +- fixed disk usage counting of updated packages (#308362) + +------------------------------------------------------------------- Mon Sep 10 14:17:29 CEST 2007 - schubi@suse.de - Splitting packages: Take the package with the best diff --git a/zypp/DiskUsageCounter.cc b/zypp/DiskUsageCounter.cc index def5cd9..ab8c200 100644 --- a/zypp/DiskUsageCounter.cc +++ b/zypp/DiskUsageCounter.cc @@ -95,7 +95,7 @@ namespace zypp { if (inst) { - if (nameit->status().isInstalled()) + if (nameit->status().isInstalled() && !nameit->status().isToBeUninstalled()) { found_installed = true; XXX << name << '-' << (*it)->edition() << ": found already installed package (" << (*nameit)->edition() << ")" << std::endl; @@ -114,7 +114,7 @@ namespace zypp } else { - if (inst && nameit->status().isInstalled()) + if (inst && nameit->status().isInstalled() && !nameit->status().isToBeUninstalled()) { // just freshen the package, don't change du statistics found_installed = true; -- 2.7.4