I changed pkgAcqArchive::QueueNext to select randomly between available sources for the same package. I've attached the patch against debian-sid branch of bzr. (The .diff-b file is the same patch with -b option of diff enabled) On Thu, Jun 24, 2010 at 6:30 PM, Julian Andres Klode <jak@debian.org> wrote: > If you can provide a patch that does not break API, sure. I guess you > would need to patch at least AcqArchive::QueueNext in > apt-pkg/acquire-item.cc and maybe pkgAcqArchive::pkgAcqArchive in the > same file to select a different source (AcqArchive::QueueNext seems to > select the source in the for loop, where it queries the version files, > i.e. the relation version<->packagefile). > > You might need to query the items in the pkgAcquire object hold in the > member "Owner" to determine which URI to choose. For this, you can use > the iterator beginning at ItemsBegin() and ending at ItemsEnd(): > > for (pkgAcquire::ItemIterator I=Owner->ItemsBegin(); I != Owner->ItemsEnd(); I++) { > ... > } > > That should be all. > > > > -- > Julian Andres Klode - Debian Developer, Ubuntu Member > > See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. > >
Attachment:
more-concurrency.diff.gz
Description: GNU Zip compressed data
Attachment:
more-concurrency.diff-b.gz
Description: GNU Zip compressed data