summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/edsp')
-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)