diff options
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r-- | apt-pkg/policy.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index b36f4d4b7..06c516e53 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -414,7 +414,12 @@ bool ReadPinDir(pkgPolicy &Plcy,string Dir) return true; } + _error->PushToStack(); vector<string> const List = GetListOfFilesInDir(Dir, "pref", true, true); + bool const PendingErrors = _error->PendingError(); + _error->MergeWithStack(); + if (PendingErrors) + return false; // Read the files for (vector<string>::const_iterator I = List.begin(); I != List.end(); ++I) |