summaryrefslogtreecommitdiff
path: root/apt-private/private-install.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-05-07 16:41:25 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-05-07 16:41:25 +0200
commitaaf677da5b62d3d0fdeb26f9b4c63fed544b63cd (patch)
treefb5abe86260b24708a7d70944bd1c07b7aace13f /apt-private/private-install.cc
parent94f6611592b4b77ac257ec37445776ac2845f682 (diff)
move pkgSourceList::AddMetaIndex() into a private subclass until we decide about a good API
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]);
}
}