Mailinglist Archive: zypp-commit (325 mails)

< Previous Next >
[zypp-commit] r7165 - in /trunk/libzypp: package/libzypp.changes zypp/DiskUsageCounter.cc
  • From: lslezak@xxxxxxxxxxxxxxxx
  • Date: Mon, 10 Sep 2007 13:53:08 -0000
  • Message-id: <20070910135309.1ACB62B0C1@xxxxxxxxxxxxxxxx>
Author: lslezak
Date: Mon Sep 10 15:53:08 2007
New Revision: 7165

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7165&view=rev
Log:
- fixed disk usage counting of updated packages (#308362)

Modified:
    trunk/libzypp/package/libzypp.changes
    trunk/libzypp/zypp/DiskUsageCounter.cc

Modified: trunk/libzypp/package/libzypp.changes
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=7165&r1=7164&r2=7165&view=diff
==============================================================================
--- trunk/libzypp/package/libzypp.changes (original)
+++ trunk/libzypp/package/libzypp.changes Mon Sep 10 15:53:08 2007
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Sep 10 15:50:49 CEST 2007 - lslezak@xxxxxxx
+
+- fixed disk usage counting of updated packages (#308362)
+
+-------------------------------------------------------------------
 Mon Sep 10 14:17:29 CEST 2007 - schubi@xxxxxxx
 
 - Splitting packages: Take the package with the best

Modified: trunk/libzypp/zypp/DiskUsageCounter.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/DiskUsageCounter.cc?rev=7165&r1=7164&r2=7165&view=diff
==============================================================================
--- trunk/libzypp/zypp/DiskUsageCounter.cc (original)
+++ trunk/libzypp/zypp/DiskUsageCounter.cc Mon Sep 10 15:53:08 2007
@@ -95,7 +95,7 @@
                    {
                        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 @@
                    }
                    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;

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages