- move the state file writting into the Go() implementation
of dpkgpm (closes: #498799)
* apt-pkg/algorithms.cc:
- fix simulation performance drop (thanks to Ferenc Wagner
for reporting the issue)
this is not necessary since the pkgCaches are fully shared now. */
pkgSimulate::pkgSimulate(pkgDepCache *Cache) : pkgPackageManager(Cache),
iPolicy(Cache),
this is not necessary since the pkgCaches are fully shared now. */
pkgSimulate::pkgSimulate(pkgDepCache *Cache) : pkgPackageManager(Cache),
iPolicy(Cache),
- Sim(&Cache->GetCache(),&iPolicy)
+ Sim(&Cache->GetCache(),&iPolicy),
+ group(Sim)
{
Sim.Init(0);
Flags = new unsigned char[Cache->Head().PackageCount];
{
Sim.Init(0);
Flags = new unsigned char[Cache->Head().PackageCount];
Policy iPolicy;
pkgDepCache Sim;
Policy iPolicy;
pkgDepCache Sim;
+ pkgDepCache::ActionGroup group;
// The Actuall installation implementation
virtual bool Install(PkgIterator Pkg,string File);
// The Actuall installation implementation
virtual bool Install(PkgIterator Pkg,string File);
if (RunScripts("DPkg::Post-Invoke") == false)
return false;
if (RunScripts("DPkg::Post-Invoke") == false)
return false;
+
+ Cache.writeStateFile(NULL);
if(goResult == false)
return Failed;
if(goResult == false)
return Failed;
- // if all was fine update the state file
- if(Res == Completed) {
- Cache.writeStateFile(NULL);
- }
-apt (UNRELEASED) experimental; urgency=low
+apt (0.7.15~exp3) UNRELEASED; urgency=low
[Daniel Burrows]
* apt-pkg/deb/dpkgpm.cc:
[Daniel Burrows]
* apt-pkg/deb/dpkgpm.cc:
concern. If it becomes a concern, we can sort the static array and
use std::equal_range(). (Closes: #499322)
concern. If it becomes a concern, we can sort the static array and
use std::equal_range(). (Closes: #499322)
+ [ Michael Vogt ]
+ * apt-pkg/packagemanager.cc, apt-pkg/deb/dpkgpm.cc:
+ - move the state file writting into the Go() implementation
+ of dpkgpm (closes: #498799)
+ * apt-pkg/algorithms.cc:
+ - fix simulation performance drop (thanks to Ferenc Wagner
+ for reporting the issue)
+
+ -- Michael Vogt <mvo@udebian.org> Wed, 01 Oct 2008 18:09:49 +0200
apt (0.7.15~exp2) experimental; urgency=low
apt (0.7.15~exp2) experimental; urgency=low