summaryrefslogtreecommitdiff
path: root/apt-pkg
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-pkg
parent94f6611592b4b77ac257ec37445776ac2845f682 (diff)
move pkgSourceList::AddMetaIndex() into a private subclass until we decide about a good API
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/sourcelist.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h
index cdf8d9762..99e83f454 100644
--- a/apt-pkg/sourcelist.h
+++ b/apt-pkg/sourcelist.h
@@ -52,7 +52,15 @@ class pkgAcquire;
class pkgIndexFile;
class metaIndex;
-class pkgSourceList
+class pkgSource
+{
+ protected:
+
+ std::vector<metaIndex *> SrcList;
+
+};
+
+class pkgSourceList : public pkgSource
{
public:
@@ -116,11 +124,6 @@ class pkgSourceList
// query last-modified time
time_t GetLastModifiedTime();
- // Add custom metaIndex (e.g. local files)
- void AddMetaIndex(metaIndex *mi) {
- SrcList.push_back(mi);
- }
-
pkgSourceList();
pkgSourceList(std::string File);
~pkgSourceList();