]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debindexfile.cc
* add --dsc-only option, thanks to K. Richard Pixley
[apt.git] / apt-pkg / deb / debindexfile.cc
index ff8bce85d1f036c260c53af050f061df22bb3188..234521efeb91c2f8ec6064c751919e468d85159b 100644 (file)
@@ -305,7 +305,7 @@ pkgCache::PkgFileIterator debPackagesIndex::FindInCache(pkgCache &Cache) const
    pkgCache::PkgFileIterator File = Cache.FileBegin();
    for (; File.end() == false; File++)
    {
-      if (FileName != File.FileName())
+       if (File.FileName() == NULL || FileName != File.FileName())
         continue;
       
       struct stat St;