summaryrefslogtreecommitdiff
path: root/src/reason_fragment.cc
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2007-10-30 07:47:55 -0700
committerDaniel Burrows <dburrows@debian.org>2007-10-30 07:47:55 -0700
commit9bc6f80392681e16d9c75e7962915ce2a3dc38d0 (patch)
tree650ac0ef6a04be74702c1a2154f30e568fa7f053 /src/reason_fragment.cc
parent1193257d676b67976b15c61bedd5e51d3bad83b1 (diff)
downloadaptitude-9bc6f80392681e16d9c75e7962915ce2a3dc38d0.tar.gz
Properly thread pointers to the cache and the package records through match routines, so that matchers work from inside the cache while it's being initialized (e.g., in the garbage detection routine) instead of crashing.
Diffstat (limited to 'src/reason_fragment.cc')
-rw-r--r--src/reason_fragment.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reason_fragment.cc b/src/reason_fragment.cc
index caca79cf..63b00da0 100644
--- a/src/reason_fragment.cc
+++ b/src/reason_fragment.cc
@@ -345,7 +345,7 @@ fragment *reason_fragment(const pkgCache::PkgIterator &pkg, bool &breakage)
infer_reason(pkg, reasons);
vector<fragment *> fragments;
- pkg_action_state actionstate=find_pkg_state(pkg);
+ pkg_action_state actionstate = find_pkg_state(pkg, *apt_cache_file);
aptitudeDepCache::StateCache &state=(*apt_cache_file)[pkg];
aptitudeDepCache::aptitude_state &estate=(*apt_cache_file)->get_ext_state(pkg);