summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-08-29 23:23:31 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-08-29 23:23:31 +0000
commit2237bd010018aedc2c301cd9357eb5ea6affb436 (patch)
tree10d8055faf7e56137ee8b2c9cbf04be235bb68b6 /apt-pkg/acquire-item.h
parent6040f5893a85c0206d3fd234c46a608b87a5e9ac (diff)
* split the diff acquire code in a bit that gets the index file and one that gets the patches. that make the code cleaner and the list-cleaner happy
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r--apt-pkg/acquire-item.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h
index 99629216a..f9c1b5b2d 100644
--- a/apt-pkg/acquire-item.h
+++ b/apt-pkg/acquire-item.h
@@ -83,6 +83,27 @@ class pkgAcquire::Item
};
// item for index diffs
+class pkgAcqDiffIndex : public pkgAcquire::Item
+{
+ protected:
+ bool Debug;
+ string RealURI;
+
+ public:
+ // Specialized action members
+ virtual void Failed(string Message,pkgAcquire::MethodConfig *Cnf);
+ virtual void Done(string Message,unsigned long Size,string Md5Hash,
+ pkgAcquire::MethodConfig *Cnf);
+ virtual string DescURI() {return RealURI + "Index";};
+ virtual string Custom600Headers();
+
+ // helpers
+ bool ParseDiffIndex(string IndexDiffFile);
+
+ pkgAcqDiffIndex(pkgAcquire *Owner,string URI,string URIDesc,
+ string ShortDesct, string ExpectedMD5);
+}
+
class pkgAcqIndexDiffs : public pkgAcquire::Item
{
protected:
@@ -113,8 +134,6 @@ class pkgAcqIndexDiffs : public pkgAcquire::Item
virtual string Custom600Headers();
// various helpers
- bool ParseIndexDiff(string IndexDiffFile);
- void QueueDiffIndex(string URI);
bool QueueNextDiff();
bool ApplyDiff(string PatchFile);
void Finish(bool allDone=false);