Does not work with preferences.d
Bug #668297 reported by
Julian Andres Klode
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qapt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
You must also call ReadPinDir(), not just ReadPinFile() in order to work correctly with preferences.d - My suggestion would be to use pkgCacheFile instead of pkgCache and friends anyway.
To post a comment you must log in.
SVN commit 1191149 by jmthomas:
Also read the pin file so that settings in /etc/apt/ preferences. d/ will work as well.
I'll see about using pkgCacheFile in QApt::Cache once I can get a feel for how it works/what I'll have to do differently in Cache to maintain binary compatibility, etc.
CCMAIL: <email address hidden>
M +1 -1 cache.cpp
--- trunk/extragear /sysadmin/ libqapt/ src/cache. cpp #1191148:1191149 d->cache) ; *(d->policy) )) { *(d->policy) ) || !ReadPinDir( *(d->policy) )) {
@@ -123,7 +123,7 @@
// Open the cache file
d->cache = new pkgCache(d->mmap);
d->policy = new pkgPolicy(
- if (!ReadPinFile(
+ if (!ReadPinFile(
return false;
}