]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.h
cleanup, fix test-apt-update-unauth as the behavior of apt changed
[apt.git] / apt-pkg / sourcelist.h
index 4943dd32acb93f50ca075f3de6fd184b745a22b9..261dd81613739286ecb2d2bdec625d37317c0b82 100644 (file)
@@ -52,7 +52,15 @@ class pkgAcquire;
 class pkgIndexFile;
 class metaIndex;
 
-class pkgSourceList
+class pkgSource
+{
+   protected:
+
+   std::vector<metaIndex *> SrcList;
+
+};
+
+class pkgSourceList : public pkgSource
 {
    public:
    
@@ -86,7 +94,7 @@ class pkgSourceList
    
    typedef std::vector<metaIndex *>::const_iterator const_iterator;
    
-   protected:
+   public:
 
    std::vector<metaIndex *> SrcList;
 
@@ -116,11 +124,6 @@ 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();