kdenonbeta/kdedebian/kapture/libcapture
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!");
}
Reply to: