#include <apt-pkg/packagemanager.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/sourcelist.h>
+#include <apt-pkg/install-progress.h>
#include <errno.h>
#include <stdlib.h>
std::map<std::string, std::string> Options;
if(Type->CreateItem(List, *I, "", "", Options))
{
- pkgSourceList *sources = Cache.GetSourceList();
+ // we have our own CacheFile that gives us a SourceList
+ // with superpowerz
+ SourceList *sources = (SourceList*)Cache.GetSourceList();
sources->AddMetaIndex(List[0]);
}
}