Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/crossdev:master commit in: /
Date: Sun, 07 Jan 2018 20:15:52
Message-Id: 1515356007.c3f4cc048c2158f1ff6e6002c72381bbebe0678e.slyfox@gentoo
1 commit: c3f4cc048c2158f1ff6e6002c72381bbebe0678e
2 Author: Dennis Schridde <devurandom <AT> gmx <DOT> net>
3 AuthorDate: Wed Jan 3 22:55:43 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 20:13:27 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=c3f4cc04
7
8 Fix parse_repo_config with regards to repository priority
9
10 This is a multi-part message in MIME format.
11
12 I just noticed a typo in the commit message. Please commit this patch
13 instead.
14 From 0d0b4653e44f807802ef1fa9647c7395d6625609 Mon Sep 17 00:00:00 2001
15 From: Dennis Schridde <devurandom <AT> users.noreply.github.com>
16 Date: Wed, 3 Jan 2018 23:41:53 +0100
17 Subject: [PATCH] Fix parse_repo_config with regards to repository priority
18
19 Before this patch, the repository config would be inserted into a more or less
20 place for the respective priority, resulting in a non-contiguous array, which
21 would no longer be fully enumerated by an awk for loop. Hence the config of
22 repositories with the same priority would be omitted for all but the first
23 few entries.
24
25 Signed-off-by: Dennis Schridde <devurandom <AT> gmx.net>
26
27 crossdev | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30 diff --git a/crossdev b/crossdev
31 index 92b7acf..10097a0 100755
32 --- a/crossdev
33 +++ b/crossdev
34 @@ -393,7 +393,7 @@ parse_repo_config() {
35 local flat_config=$(echo "${repo_config}" | gawk '
36 function push(arr, idx, ele) {
37 if (idx in arr)
38 - arr[idx][length(arr) + 1] = ele
39 + arr[idx][length(arr[idx]) + 1] = ele
40 else
41 arr[idx][0] = ele
42 }