]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/policy.cc
imbue datetime parsing with C.UTF-8 locale
[apt.git] / apt-pkg / policy.cc
index eb90daca7ade2daaee3ccee7fb04f90834a86011..2bdd96d8c85ec552e113f019116abebb811b5a81 100644 (file)
@@ -316,7 +316,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)