]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/depcache.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 7 Sep 2006 16:21:29 +0000 (18:21 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 7 Sep 2006 16:21:29 +0000 (18:21 +0200)
  - bugfix in the "get-section" code

apt-pkg/depcache.cc

index 422343e4addd2ba65a1effe098c8bbce026c6b25..a031fa06810fa4551ffc8428d8f02215f727b8a4 100644 (file)
@@ -915,7 +915,7 @@ bool pkgDepCache::Policy::IsImportantDep(DepIterator Dep)
       string s = _config->Find("APT::Install-Recommends-Section","");
       if(s.size() > 0) 
       {
-        const char *sec = Dep.TargetPkg().Section();
+        const char *sec = Dep.ParentVer().Section();
         if (sec && strcmp(sec, s.c_str()) == 0)
            return true;
       }