summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-02 18:08:13 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-02 18:08:13 +0200
commit9221da7e1d5516494d17043a4d0b063a1d6b95c2 (patch)
treedf47a45e8bce1c1708114ad9cbb3e0cdbf9990cb
parent76d4aab06d3c5edd60362fd14b38eb43416616f0 (diff)
parse correctly the Hold: lines into Pkg->SelectedState = Hold
-rw-r--r--apt-pkg/edsp/edsplistparser.cc7
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)