]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-install.cc
Merge remote-tracking branch 'upstream/debian/sid' into debian/experimental
[apt.git] / apt-private / private-install.cc
index e7606a1d1be22c68587e71cdf1444be63d901b84..d9e4854620dc9d479bd8dedceb3bd746ef3c1248 100644 (file)
@@ -20,6 +20,7 @@
 #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>
@@ -685,7 +686,9 @@ bool DoInstall(CommandLine &CmdL)
             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]);
             }
          }