summaryrefslogtreecommitdiff
path: root/data/_apt7/parallel.diff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-08-15 10:49:31 -1000
committerSam Bingner <sam@bingner.com>2018-08-15 10:49:31 -1000
commit2f8f0c32e83897a3644f0d94bfaf437743e2741b (patch)
tree87038c9a8a49f33db1e3c1a5f4cc38109f4e0de2 /data/_apt7/parallel.diff
parentaf3c4ce5f8f1a128eaf24d22749df3b7e744e41b (diff)
Update apt7 to 1.4.8 based on nitotv fork and add xz support
Diffstat (limited to 'data/_apt7/parallel.diff')
-rw-r--r--data/_apt7/parallel.diff33
1 files changed, 0 insertions, 33 deletions
diff --git a/data/_apt7/parallel.diff b/data/_apt7/parallel.diff
deleted file mode 100644
index 40d28fb3d..000000000
--- a/data/_apt7/parallel.diff
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -ru apt-0.6.46.4.1/apt-pkg/acquire.cc apt-0.6.46.4.1+iPhone/apt-pkg/acquire.cc
---- apt-0.6.46.4.1/apt-pkg/acquire.cc 2006-12-04 14:37:34.000000000 +0000
-+++ apt-0.6.46.4.1+iPhone/apt-pkg/acquire.cc 2009-01-21 10:47:16.000000000 +0000
-@@ -238,9 +238,27 @@
- /* Single-Instance methods get exactly one queue per URI. This is
- also used for the Access queue method */
- if (Config->SingleInstance == true || QueueMode == QueueAccess)
-- return U.Access;
-+ return U.Access;
-+ string name(U.Access + ':' + U.Host);
-
-- return U.Access + ':' + U.Host;
-+ int parallel(_config->FindI("Acquire::"+U.Access+"::MaxParallel",8));
-+ if (parallel <= 0)
-+ return name;
-+
-+ typedef map<string, int> indexmap;
-+ static indexmap indices;
-+
-+ pair<indexmap::iterator, bool> cache(indices.insert(indexmap::value_type(name, -1)));
-+ if (cache.second || cache.first->second == -1) {
-+ int &index(indices[U.Access]);
-+ if (index >= parallel)
-+ index = 0;
-+ cache.first->second = index++;
-+ }
-+
-+ ostringstream value;
-+ value << U.Access << "::" << cache.first->second;
-+ return value.str();
- }
- /*}}}*/
- // Acquire::GetConfig - Fetch the configuration information /*{{{*/