summaryrefslogtreecommitdiff
path: root/apt-private/private-install.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-install.cc')
-rw-r--r--apt-private/private-install.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc
index e7606a1d1..35649fcdb 100644
--- a/apt-private/private-install.cc
+++ b/apt-private/private-install.cc
@@ -685,7 +685,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]);
}
}