From 5ab7b53b09c508eb551eaf698bd2035cd3bc8777 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Mon, 16 Apr 2012 23:55:39 +0200 Subject: [PATCH] =?utf8?q?*=20apt-pkg/packagemanager.cc:=20=20=20-=20init?= =?utf8?q?=20counter=20in=20SmartConfigure=20so=20that=20the=20loop-breake?= =?utf8?q?r=20isn't=20=20=20=20=20triggered=20at=20random=E2=80=A6=20(Clos?= =?utf8?q?es:=20#669060)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- apt-pkg/packagemanager.cc | 2 +- debian/changelog | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index c62c4d187..093999bc2 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -602,7 +602,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c or by the ConfigureAll call at the end of the for loop in OrderInstall. */ bool Changed = false; const unsigned int max_loops = _config->FindI("APT::pkgPackageManager::MaxLoopCount", 500); - unsigned int i; + unsigned int i = 0; do { Changed = false; diff --git a/debian/changelog b/debian/changelog index 8e3e35064..10f515a70 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,11 @@ apt (0.9.1) unstable; urgency=low * cmdline/apt-get.cc: - if pkgCacheFile::Generate is disabled in 'update' don't remove the caches (and don't try to open them) + * apt-pkg/packagemanager.cc: + - init counter in SmartConfigure so that the loop-breaker isn't + triggered at random… (Closes: #669060) - -- David Kalnischkies Mon, 16 Apr 2012 22:56:31 +0200 + -- David Kalnischkies Mon, 16 Apr 2012 23:15:22 +0200 apt (0.9.0) unstable; urgency=low -- 2.45.2