summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/sourcelist.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h
index 35b786e1a..998357509 100644
--- a/apt-pkg/sourcelist.h
+++ b/apt-pkg/sourcelist.h
@@ -52,23 +52,15 @@ class pkgAcquire;
class pkgIndexFile;
class metaIndex;
-class pkgSource
-{
- protected:
-
- std::vector<metaIndex *> SrcList;
-
-};
-
-class pkgSourceList : public pkgSource
+class pkgSourceList
{
public:
-
+
// List of supported source list types
class Type
{
public:
-
+
// Global list of Items supported
static Type **GlobalList;
static unsigned long GlobalListLen;
@@ -91,14 +83,18 @@ class pkgSourceList : public pkgSource
Type();
virtual ~Type() {};
};
-
+
typedef std::vector<metaIndex *>::const_iterator const_iterator;
-
- public:
+
+ protected:
+
+ std::vector<metaIndex *> SrcList;
int ParseFileDeb822(std::string File);
bool ParseFileOldStyle(std::string File);
+ public:
+
bool ReadMainList();
bool Read(std::string File);