summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-05-06 11:55:54 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-05-06 11:55:54 +0200
commit448eaf8b5999b6866237a069d678337b647968c4 (patch)
treec66ebd9dff1f56abaf1029cc1493e72088e00dc9 /apt-pkg/policy.cc
parent888c49107facbed08ce58d944f317e7f5f5bbe1f (diff)
convert FileExists to DirectoryExists to check if the path is really a
directory (and to have a better method name in the error message if not)
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r--apt-pkg/policy.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc
index 479cf3935..922efb0dd 100644
--- a/apt-pkg/policy.cc
+++ b/apt-pkg/policy.cc
@@ -291,9 +291,9 @@ bool ReadPinDir(pkgPolicy &Plcy,string Dir)
if (Dir.empty() == true)
Dir = _config->FindDir("Dir::Etc::PreferencesParts");
- if (FileExists(Dir) == false)
+ if (DirectoryExists(Dir) == false)
{
- _error->WarningE("FileExists",_("Unable to read %s"),Dir.c_str());
+ _error->WarningE("DirectoryExists",_("Unable to read %s"),Dir.c_str());
return true;
}