mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
app-portage/iwdevtools: backport diff output fix
Another short fix, leaving releases for later and going straight to stable. Kind of important fix, in some rare'ish cases a line may not have been displayed leading to missed information. So new output may be available. Thanks-to: Joonas Niilola <juippis@gentoo.org> Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
https://github.com/ionenwks/iwdevtools/commit/74d7b913a9bea5cfbf59e451d8db4a4c6140cba8
|
||||
From: Ionen Wolkens <ionen@gentoo.org>
|
||||
Date: Wed, 16 Mar 2022 09:51:00 -0400
|
||||
Subject: [PATCH] qa-vdb: fix off-by-one in diff output
|
||||
|
||||
This wrongly assumed f1 array was always at least as big as f2
|
||||
|
||||
--- a/scripts/qa-vdb
|
||||
+++ b/scripts/qa-vdb
|
||||
@@ -203,8 +203,8 @@ vdb-get_libdiff() {
|
||||
# create combined output
|
||||
local -i len=0
|
||||
local o mark changes=false
|
||||
- for ((i=0; i < ${#f1[@]}; i++)); do
|
||||
- : "${f2[i]:=}"
|
||||
+ for ((i=0; i < (${#f1[@]}>${#f2[@]}?${#f1[@]}:${#f2[@]}); i++)); do
|
||||
+ : "${f1[i]:=}${f2[i]:=}"
|
||||
if [[ ${f1[i]} == "${f2[i]}" ]]; then
|
||||
${O[full]} || continue
|
||||
mark=' '
|
||||
+1
@@ -29,6 +29,7 @@ BDEPEND="
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-ldpath-regression.patch
|
||||
"${FILESDIR}"/${P}-diff-off-by-one.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
Reference in New Issue
Block a user