]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debindexfile.cc
cacheset: Fix compilation on new GCC in C++98 mode
[apt.git] / apt-pkg / deb / debindexfile.cc
index c43ee7b917426101cfffc3f4b15eeb151c23c3bc..32ccd75291fe212503d114e04958a3ef3d5f678a 100644 (file)
@@ -145,6 +145,17 @@ uint8_t debStatusIndex::GetIndexFlags() const
 {
    return pkgCache::Flag::NotSource;
 }
+
+pkgCacheListParser * debStatusIndex::CreateListParser(FileFd &Pkg)
+{
+   if (Pkg.IsOpen() == false)
+      return NULL;
+   _error->PushToStack();
+   pkgCacheListParser * const Parser = new debStatusListParser(&Pkg);
+   bool const newError = _error->PendingError();
+   _error->MergeWithStack();
+   return newError ? NULL : Parser;
+}
                                                                        /*}}}*/
 // DebPkgFile Index - a single .deb file as an index                   /*{{{*/
 debDebPkgFileIndex::debDebPkgFileIndex(std::string const &DebFile)