- * - send expected checksum to the mirror method so that
- some checking/falling back can be done here already
- use pkgAcquire::Custom600Header() for this? what about gpgv
- failures?
+ * - what about gpgv failures? better standard format for errors
+ to send back to LP
- we need to send back what uri exactly was failing
-
+ we need to send back what uri exactly was failing
+ [mvo: the problem with this approach is ::Failed() is not really
+ called for all failures :/ e.g. md5sum mismatch in a archive
+ is not]
* - deal with runing as non-root because we can't write to the lists
dir then -> use the cached mirror file
* - better method to download than having a pkgAcquire interface here
* - deal with runing as non-root because we can't write to the lists
dir then -> use the cached mirror file
* - better method to download than having a pkgAcquire interface here
if(Queue->Uri.find("http://") != string::npos)
Queue->Uri.replace(0,Mirror.size(), BaseUri);
pkgAcqMethod::Fail(Err, Transient);
if(Queue->Uri.find("http://") != string::npos)
Queue->Uri.replace(0,Mirror.size(), BaseUri);
pkgAcqMethod::Fail(Err, Transient);
if(Queue->Uri.find("http://") != string::npos)
Queue->Uri.replace(0,Mirror.size(), BaseUri);
pkgAcqMethod::URIDone(Res, Alt);
}
if(Queue->Uri.find("http://") != string::npos)
Queue->Uri.replace(0,Mirror.size(), BaseUri);
pkgAcqMethod::URIDone(Res, Alt);
}