summaryrefslogtreecommitdiff
path: root/methods/mirror.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-02-05 17:52:28 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-02-05 17:52:28 +0100
commit59271f62e4a291c8d96e1f6073203c395734b6ca (patch)
tree114963f118d57bafc02b273dfdb1d4b972527c9a /methods/mirror.cc
parent361593e92a44255cc0ef98417e7457911716cab5 (diff)
* use pkgAcqMethod::FailReason() for consistent error reporting
Diffstat (limited to 'methods/mirror.cc')
-rw-r--r--methods/mirror.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/methods/mirror.cc b/methods/mirror.cc
index 8ccfb8559..b64879bec 100644
--- a/methods/mirror.cc
+++ b/methods/mirror.cc
@@ -31,20 +31,14 @@ using namespace std;
/*}}}*/
/* Done:
- * - works with http only
+ * - works with http (only!)
* - always picks the first mirror from the list
* - call out to problem reporting script
* - supports "deb mirror://host/path/to/mirror-list/// dist component"
+ * - use pkgAcqMethod::FailReason() to have a string representation
+ * of the failure that is also send to LP
*
* TODO:
- * what about gpgv failures? this should call-out to the problem reporting
- script, but we need to know what mirror was used -> just run pkgAcquire::Item::ReportMirrorFailure()
- * better standard format for errors to send back
- * - implement failure reporting at the pkgAcquire::Item::Failed() level
- but then 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