2d176be
Index: apt-pkg/pkgcachegen.cc
2d176be
===================================================================
2d176be
--- apt-pkg/pkgcachegen.cc	(revision 272)
2d176be
+++ apt-pkg/pkgcachegen.cc	(working copy)
2d176be
@@ -650,6 +650,17 @@
2d176be
 	 continue;
2d176be
       }
2d176be
 
2d176be
+      // Band-aid for cache corruption issue (RH bugzilla #211254) 
2d176be
+      // until real cause and cure is found
2d176be
+      for (pkgCache::PkgFileIterator File = Cache.FileBegin(); 
2d176be
+	    File.end() == false; File++) {
2d176be
+	 if (File.FileName() == NULL) {
2d176be
+	    _error->Warning(_("Cache corruption detected, band-aid applied."));
2d176be
+	    _error->Warning(_("See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=211254 for further info."));
2d176be
+	    return false;
2d176be
+	 }
2d176be
+      }
2d176be
+
2d176be
       // FindInCache is also expected to do an IMS check.
2d176be
       pkgCache::PkgFileIterator File = (*Start)->FindInCache(Cache);
2d176be
       if (File.end() == true)