summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-06 17:09:08 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-06 17:09:08 +0200
commit13aa7588f24c4bc60c865071361d7be6e20c7086 (patch)
tree950ce0071a391a46f941d4b414bd929b1763e3f9 /cmdline/apt-cache.cc
parent5541fea3f0c6b4b40048c161b9201b03243ac3a9 (diff)
parente68ca100711326895126dc1fca86a2124a8e8d63 (diff)
Support /etc/apt/preferences.d, by adding ReadPinDir() (Closes: #535512)
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r--cmdline/apt-cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 4431fd4f9..acef8dc5e 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -401,7 +401,7 @@ bool DumpAvail(CommandLine &Cmd)
pkgCache &Cache = *GCache;
pkgPolicy Plcy(&Cache);
- if (ReadPinFile(Plcy) == false)
+ if (ReadPinFile(Plcy) == false || ReadPinDir(Plcy) == false)
return false;
unsigned long Count = Cache.HeaderP->PackageCount+1;
@@ -1515,7 +1515,7 @@ bool Policy(CommandLine &CmdL)
pkgCache &Cache = *GCache;
pkgPolicy Plcy(&Cache);
- if (ReadPinFile(Plcy) == false)
+ if (ReadPinFile(Plcy) == false || ReadPinDir(Plcy) == false)
return false;
// Print out all of the package files