diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-29 23:48:15 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-08-29 23:48:15 +0000 |
commit | 002d99439f800af38ee08fb89ef9651db727f36b (patch) | |
tree | db6a4d1d4a42f54c150fc65d2489babfc1b3b2a6 /apt-pkg/acquire-item.h | |
parent | 2237bd010018aedc2c301cd9357eb5ea6affb436 (diff) |
* fixed apt-pkg/acquire-item.h (looks like the last commit didn't include it?)
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r-- | apt-pkg/acquire-item.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index f9c1b5b2d..b55ac526b 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -83,11 +83,22 @@ class pkgAcquire::Item }; // item for index diffs + +struct DiffInfo { + string file; + string sha1; + unsigned long size; +}; + class pkgAcqDiffIndex : public pkgAcquire::Item { protected: bool Debug; + pkgAcquire::ItemDesc Desc; string RealURI; + string ExpectedMD5; + string CurrentPackagesFile; + string Description; public: // Specialized action members @@ -102,7 +113,7 @@ class pkgAcqDiffIndex : public pkgAcquire::Item pkgAcqDiffIndex(pkgAcquire *Owner,string URI,string URIDesc, string ShortDesct, string ExpectedMD5); -} +}; class pkgAcqIndexDiffs : public pkgAcquire::Item { @@ -113,14 +124,7 @@ class pkgAcqIndexDiffs : public pkgAcquire::Item string ExpectedMD5; // this is the SHA-1 sum we expect after the patching - string ServerSha1; - string CurrentPackagesFile; string Description; - struct DiffInfo { - string file; - string sha1; - unsigned long size; - }; vector<DiffInfo> available_patches; enum {StateFetchIndex,StateFetchDiff,StateUnzipDiff,StateApplyDiff} State; @@ -131,7 +135,6 @@ class pkgAcqIndexDiffs : public pkgAcquire::Item virtual void Done(string Message,unsigned long Size,string Md5Hash, pkgAcquire::MethodConfig *Cnf); virtual string DescURI() {return RealURI + "Index";}; - virtual string Custom600Headers(); // various helpers bool QueueNextDiff(); |