]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/fileutl.cc
db2 isn't used for ages now, so complain about missing libdb instead
[apt.git] / apt-pkg / contrib / fileutl.cc
index 557ba0ca63411e12551cb3aa61d1a5a9a3c5d5aa..1808489d7d276cc47c23afdde3589e0301c3fed8 100644 (file)
@@ -387,6 +387,13 @@ std::vector<string> GetListOfFilesInDir(string const &Dir, std::vector<string> c
       {
         if (RealFileExists(File.c_str()) == false)
         {
+           // do not show ignoration warnings for directories
+           if (
+#ifdef _DIRENT_HAVE_D_TYPE
+               Ent->d_type == DT_DIR ||
+#endif
+               DirectoryExists(File.c_str()) == true)
+              continue;
            if (SilentIgnore.Match(Ent->d_name) == false)
               _error->Notice(_("Ignoring '%s' in directory '%s' as it is not a regular file"), Ent->d_name, Dir.c_str());
            continue;