diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-05-02 18:08:13 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-05-02 18:08:13 +0200 |
commit | 9221da7e1d5516494d17043a4d0b063a1d6b95c2 (patch) | |
tree | df47a45e8bce1c1708114ad9cbb3e0cdbf9990cb /apt-pkg | |
parent | 76d4aab06d3c5edd60362fd14b38eb43416616f0 (diff) | |
download | apt-9221da7e1d5516494d17043a4d0b063a1d6b95c2.tar.gz |
parse correctly the Hold: lines into Pkg->SelectedState = Hold
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/edsp/edsplistparser.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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) |