summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-05-07 15:39:12 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-05-07 15:39:12 +0000
commit6cb30d01f8e247e85966ba8ad657453d73598527 (patch)
tree55bf235b93928eec347c9eecf1c1f996eb2eaed2 /apt-pkg/acquire-item.h
parentac5b205a831168ee76e8760e19eb7d43aa361851 (diff)
* use "red" now, print meaningfull pdiff names, use IMS for the IndexDiff
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r--apt-pkg/acquire-item.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h
index f56fd0465..6c78f33ef 100644
--- a/apt-pkg/acquire-item.h
+++ b/apt-pkg/acquire-item.h
@@ -94,8 +94,14 @@ class pkgAcqIndexDiffs : public pkgAcquire::Item
string ServerSha1;
string CurrentPackagesFile;
string Description;
- vector<string> needed_files;
+ struct DiffInfo {
+ string file;
+ string sha1;
+ unsigned long size;
+ };
+ vector<DiffInfo> needed_files;
+
public:
// Specialized action members
@@ -103,7 +109,7 @@ 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 ParseIndexDiff(string IndexDiffFile);
@@ -114,7 +120,7 @@ class pkgAcqIndexDiffs : public pkgAcquire::Item
pkgAcqIndexDiffs(pkgAcquire *Owner,string URI,string URIDesc,
string ShortDesct, string ExpectedMD5,
- vector<string> diffs=vector<string>());
+ vector<DiffInfo> diffs=vector<DiffInfo>());
};
// Item class for index files