Revision 280,
935 bytes
checked in by yasumichi, 14 years ago
(diff) |
first import
|
Line | |
---|
1 | // pkg_acqfile.h |
---|
2 | // |
---|
3 | // File acquirers that Don't Suck. |
---|
4 | // |
---|
5 | // mvo: taken from aptitude with a big _thankyou_ |
---|
6 | |
---|
7 | #include <apt-pkg/acquire-item.h> |
---|
8 | |
---|
9 | class pkgAcqFileSane:public pkgAcquire::Item |
---|
10 | // This is frustrating: pkgAcqFile is **almost** good enough, but has some |
---|
11 | // hardcoded stuff that makes it not quite work. |
---|
12 | // |
---|
13 | // Based heavily on that class, though. |
---|
14 | { |
---|
15 | pkgAcquire::ItemDesc Desc; |
---|
16 | string Md5Hash; |
---|
17 | unsigned int Retries; |
---|
18 | |
---|
19 | public: |
---|
20 | pkgAcqFileSane(pkgAcquire *Owner, string URI, |
---|
21 | string Description, string ShortDesc, string filename); |
---|
22 | |
---|
23 | void Failed(string Message, pkgAcquire::MethodConfig *Cnf); |
---|
24 | string MD5Sum() {return Md5Hash;} |
---|
25 | string DescURI() {return Desc.URI;} |
---|
26 | virtual ~pkgAcqFileSane() {} |
---|
27 | }; |
---|
28 | |
---|
29 | // Hack around the broken pkgAcqArchive. |
---|
30 | bool get_archive(pkgAcquire *Owner, pkgSourceList *Sources, |
---|
31 | pkgRecords *Recs, pkgCache::VerIterator const &Version, |
---|
32 | std::string directory, std::string &StoreFilename); |
---|
Note: See
TracBrowser
for help on using the repository browser.