]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/policy.cc
add a first round of stuff needed for talking between APT and solvers
[apt.git] / apt-pkg / policy.cc
index 94c7fd4afca7834ec4d43358524caf56eddaa538..4e4077feb3a5dafcda09003ccb00ca0f3e790f66 100644 (file)
@@ -269,6 +269,10 @@ signed short pkgPolicy::GetPriority(pkgCache::PkgIterator const &Pkg)
    }
    
    return 0;
+}
+signed short pkgPolicy::GetPriority(pkgCache::PkgFileIterator const &File)
+{
+   return PFPriority[File->ID];
 }
                                                                        /*}}}*/
 // PreferenceSection class - Overriding the default TrimRecord method  /*{{{*/