summaryrefslogtreecommitdiff
path: root/apt-pkg/sourcelist.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/sourcelist.h')
-rw-r--r--apt-pkg/sourcelist.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h
index 9df0c1d74..4943dd32a 100644
--- a/apt-pkg/sourcelist.h
+++ b/apt-pkg/sourcelist.h
@@ -116,6 +116,11 @@ class pkgSourceList
// query last-modified time
time_t GetLastModifiedTime();
+ // Add custom metaIndex (e.g. local files)
+ void Add(metaIndex *mi) {
+ SrcList.push_back(mi);
+ }
+
pkgSourceList();
pkgSourceList(std::string File);
~pkgSourceList();