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

kdenonbeta/kdedebian/kapture/libcapture



CVS commit by mornfall: 

Fix summaryview, newly installed packages included upgrades. Eww.


  M +1 -1      pkgcache.cpp   1.30
  M +1 -0      pkgcache.h   1.25


--- kdenonbeta/kdedebian/kapture/libcapture/pkgcache.cpp  #1.29:1.30
@@ -702,5 +702,5 @@ PkgCache::Stats PkgCache::getStats (void
             s . available ++;
         ps = packageState (mP);
-        if (stInstall (ps))
+        if (stNewInstall (ps))
             s . install ++;
         if (stUpgrade (ps))

--- kdenonbeta/kdedebian/kapture/libcapture/pkgcache.h  #1.24:1.25
@@ -199,4 +199,5 @@ namespace capture {
             static bool stKeepI (PkgState s) { return (s & PkgKeep) && (s & PkgInstalled); }
             static bool stUpgrade (PkgState s) { return stUpgradable (s) && stInstall (s); }
+            static bool stNewInstall (PkgState s) { return (s & PkgInstall) && ! stUpgrade (s); }
 
             static bool canInstall (PkgState s) {




Reply to: