]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/policy.cc
* merged latest fixes from debian-sid
[apt.git] / apt-pkg / policy.cc
index c5028d822aa6bbbb22b5fd8a618dbe33b8ff788c..2c22fe0da902abd16dc704212bc36287de73b4b5 100644 (file)
@@ -319,6 +319,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  /*{{{*/