- fixed disk usage counting of updated packages (#308362)
authorLadislav Slezak <lslezak@suse.cz>
Mon, 10 Sep 2007 13:53:08 +0000 (13:53 +0000)
committerLadislav Slezak <lslezak@suse.cz>
Mon, 10 Sep 2007 13:53:08 +0000 (13:53 +0000)
package/libzypp.changes
zypp/DiskUsageCounter.cc

index 5948211..d4c1cfd 100644 (file)
@@ -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
index def5cd9..ab8c200 100644 (file)
@@ -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;