|
@@ -52,23 +52,15 @@ class pkgAcquire;
|
|
|
class pkgIndexFile;
|
|
class pkgIndexFile;
|
|
|
class metaIndex;
|
|
class metaIndex;
|
|
|
|
|
|
|
|
-class pkgSource
|
|
|
|
|
-{
|
|
|
|
|
- protected:
|
|
|
|
|
-
|
|
|
|
|
- std::vector<metaIndex *> SrcList;
|
|
|
|
|
-
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
-class pkgSourceList : public pkgSource
|
|
|
|
|
|
|
+class pkgSourceList
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// List of supported source list types
|
|
// List of supported source list types
|
|
|
class Type
|
|
class Type
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// Global list of Items supported
|
|
// Global list of Items supported
|
|
|
static Type **GlobalList;
|
|
static Type **GlobalList;
|
|
|
static unsigned long GlobalListLen;
|
|
static unsigned long GlobalListLen;
|
|
@@ -91,14 +83,18 @@ class pkgSourceList : public pkgSource
|
|
|
Type();
|
|
Type();
|
|
|
virtual ~Type() {};
|
|
virtual ~Type() {};
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
typedef std::vector<metaIndex *>::const_iterator const_iterator;
|
|
typedef std::vector<metaIndex *>::const_iterator const_iterator;
|
|
|
-
|
|
|
|
|
- public:
|
|
|
|
|
|
|
+
|
|
|
|
|
+ protected:
|
|
|
|
|
+
|
|
|
|
|
+ std::vector<metaIndex *> SrcList;
|
|
|
|
|
|
|
|
int ParseFileDeb822(std::string File);
|
|
int ParseFileDeb822(std::string File);
|
|
|
bool ParseFileOldStyle(std::string File);
|
|
bool ParseFileOldStyle(std::string File);
|
|
|
|
|
|
|
|
|
|
+ public:
|
|
|
|
|
+
|
|
|
bool ReadMainList();
|
|
bool ReadMainList();
|
|
|
bool Read(std::string File);
|
|
bool Read(std::string File);
|
|
|
|
|
|