aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Schridde <devurandom@gmx.net>2018-01-03 23:55:43 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-01-07 20:13:27 +0000
commitc3f4cc048c2158f1ff6e6002c72381bbebe0678e (patch)
treed7f1432a680f2008644f699a39976103475c71b3
parentcrossdev: uninstall gcov-{dump,tool} gprof, bug #643162 (diff)
downloadcrossdev-c3f4cc048c2158f1ff6e6002c72381bbebe0678e.tar.gz
crossdev-c3f4cc048c2158f1ff6e6002c72381bbebe0678e.tar.bz2
crossdev-c3f4cc048c2158f1ff6e6002c72381bbebe0678e.zip
Fix parse_repo_config with regards to repository priority
This is a multi-part message in MIME format. I just noticed a typo in the commit message. Please commit this patch instead. From 0d0b4653e44f807802ef1fa9647c7395d6625609 Mon Sep 17 00:00:00 2001 From: Dennis Schridde <devurandom@users.noreply.github.com> Date: Wed, 3 Jan 2018 23:41:53 +0100 Subject: [PATCH] Fix parse_repo_config with regards to repository priority Before this patch, the repository config would be inserted into a more or less place for the respective priority, resulting in a non-contiguous array, which would no longer be fully enumerated by an awk for loop. Hence the config of repositories with the same priority would be omitted for all but the first few entries. Signed-off-by: Dennis Schridde <devurandom@gmx.net>
-rwxr-xr-xcrossdev2
1 files changed, 1 insertions, 1 deletions
diff --git a/crossdev b/crossdev
index 92b7acf..10097a0 100755
--- a/crossdev
+++ b/crossdev
@@ -393,7 +393,7 @@ parse_repo_config() {
local flat_config=$(echo "${repo_config}" | gawk '
function push(arr, idx, ele) {
if (idx in arr)
- arr[idx][length(arr) + 1] = ele
+ arr[idx][length(arr[idx]) + 1] = ele
else
arr[idx][0] = ele
}