diff options
author | 2018-01-03 23:55:43 +0100 | |
---|---|---|
committer | 2018-01-07 20:13:27 +0000 | |
commit | c3f4cc048c2158f1ff6e6002c72381bbebe0678e (patch) | |
tree | d7f1432a680f2008644f699a39976103475c71b3 | |
parent | crossdev: uninstall gcov-{dump,tool} gprof, bug #643162 (diff) | |
download | crossdev-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-x | crossdev | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |