diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-11-30 11:06:09 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-11-30 11:06:09 +0100 |
commit | ef1e6d8822bb34527bba5d2318b5768013efd010 (patch) | |
tree | b10afa35c244aaef5d36b9307461a6724fe00903 /methods/mirror.cc | |
parent | 3ed91a17d21d0d456a12accc507b82e1c0f1a697 (diff) |
* methods/mirror.cc:
- check the complette queue on Fetch() for urls to transform
Diffstat (limited to 'methods/mirror.cc')
-rw-r--r-- | methods/mirror.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/methods/mirror.cc b/methods/mirror.cc index 1911d6115..4de981522 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -32,6 +32,7 @@ using namespace std; * - support keeping the mirror file around (evil listclearer strikes again) * -> /var/lib/apt/mirrors dir? how to cleanup? by time? * - provide some TTL time until the mirror file is get again (1h? 6h?) + * - deal with runing as non-root (we can't write to the lists dir then) * - testing :) */ @@ -109,8 +110,11 @@ bool MirrorMethod::Fetch(FetchItem *Itm) SelectMirror(); } - if(Queue->Uri.find("mirror://") != string::npos) - Queue->Uri.replace(0,BaseUri.size(),Mirror); + for (FetchItem *I = Queue; I != 0; I = I->Next) + { + if(I->Uri.find("mirror://") != string::npos) + I->Uri.replace(0,BaseUri.size(),Mirror); + } // now run the real fetcher return HttpMethod::Fetch(Itm); |