From: David Kalnischkies Date: Mon, 2 May 2011 16:08:13 +0000 (+0200) Subject: parse correctly the Hold: lines into Pkg->SelectedState = Hold X-Git-Tag: 0.9.0~91^2~11^2~15 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/9221da7e1d5516494d17043a4d0b063a1d6b95c2 parse correctly the Hold: lines into Pkg->SelectedState = Hold --- diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc index 913455efa..3349e8cce 100644 --- a/apt-pkg/edsp/edsplistparser.cc +++ b/apt-pkg/edsp/edsplistparser.cc @@ -63,10 +63,13 @@ unsigned short edspListParser::VersionHash() bool edspListParser::ParseStatus(pkgCache::PkgIterator &Pkg, pkgCache::VerIterator &Ver) { - if (Section.FindFlag("Hold",Pkg->Flags,pkgCache::State::Installed) == false) + unsigned long state = 0; + if (Section.FindFlag("Hold",state,pkgCache::State::Hold) == false) return false; + if (state != 0) + Pkg->SelectedState = pkgCache::State::Hold; - unsigned long state = 0; + state = 0; if (Section.FindFlag("Installed",state,pkgCache::State::Installed) == false) return false; if (state != 0)