]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/policy.cc
strip the Dir::state from the config name as it will never be there
[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;
    }
    
    return 0;
+}
+signed short pkgPolicy::GetPriority(pkgCache::PkgFileIterator const &File)
+{
+   return PFPriority[File->ID];
 }
                                                                        /*}}}*/
 // PreferenceSection class - Overriding the default TrimRecord method  /*{{{*/
 }
                                                                        /*}}}*/
 // PreferenceSection class - Overriding the default TrimRecord method  /*{{{*/