[devel] kdenonbeta/kdedebian/kapture/libcapture

Peter Rockai <[email protected]> Thu, 22 Jul 2004 20:11:16 +0200 (CEST)
Newsgroups gmane.comp.kde.debian
Message-ID <20040722181116.1667516AF8__9957.60994633219$1093223214$gmane$org@office.kde.org>
CVS commit by mornfall: 

Run problem resolver on load if there are broken packages... (doesn't
seem to work right now tho).


  M +5 -1      pkgmanager.cpp   1.45


--- kdenonbeta/kdedebian/kapture/libcapture/pkgmanager.cpp  #1.44:1.45
@@ -179,4 +179,8 @@ bool PkgManager::loadCache ()
     m_cache -> initExtState ("./debug-libcapture.extstate");
     m_cacheOpen = true;
+    if (m_cache->BrokenCount() != 0) {
+        pkgProblemResolver fix (cache ());
+        fix . Resolve ();
+    }
     notifyRebuild ();
     notifyCacheWriteableChange ();
@@ -443,5 +447,5 @@ bool PkgManager::doCommit (CommitStatus 
         cerr << "BROKEN PACKAGES (" << m_cache->BrokenCount() << ")!" << endl;
         // ShowBroken(c1out,Cache,false);
-        return _error->Error("Internal Error, InstallPackages was called with broken packages!");
+        return _error->Error("Internal Error, PkgManager::doCommit was called with broken packages!");
     }
 


_______________________________________________
kde-debian-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-debian-devel