]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.cc
Merge branch 'debian/sid' into debian/experimental
[apt.git] / apt-pkg / sourcelist.cc
index 7170e8b5ba4ab1f81fdd056b6a9d3f44dc4aee65..8b960572bc71b2a7dd989419a5ad11ca93ea1e7f 100644 (file)
@@ -331,7 +331,7 @@ bool pkgSourceList::ParseFileOldStyle(string File)
 {
    // Open the stream for reading
    ifstream F(File.c_str(),ios::in /*| ios::nocreate*/);
-   if (!F != 0)
+   if (F.fail() == true)
       return _error->Errno("ifstream::ifstream",_("Opening %s"),File.c_str());
 
    // CNC:2003-12-10 - 300 is too short.