From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4DAAE159C96 for ; Wed, 24 Jul 2024 07:28:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CB3EE2AA8; Wed, 24 Jul 2024 07:28:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68685E2A3F for ; Wed, 24 Jul 2024 07:28:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BCE8340DC8 for ; Wed, 24 Jul 2024 07:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0431F1E46 for ; Wed, 24 Jul 2024 07:28:22 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1721331520.51f21f7d796696339a5a5f3dfaf4ee0a5f51c320.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild X-VCS-Directories: app-benchmarks/phoronix-test-suite/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 51f21f7d796696339a5a5f3dfaf4ee0a5f51c320 X-VCS-Branch: master Date: Wed, 24 Jul 2024 07:28:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6058b4a4-cacd-492a-bde3-971e4202b069 X-Archives-Hash: d6a838f239f38faa414f44f626a04b5e commit: 51f21f7d796696339a5a5f3dfaf4ee0a5f51c320 Author: Vitaly Zdanevich ya ru> AuthorDate: Thu Jul 18 19:38:40 2024 +0000 Commit: David Roman gmail com> CommitDate: Thu Jul 18 19:38:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51f21f7d app-benchmarks/phoronix-test-suite: ExcessiveLineLength fix Signed-off-by: Vitaly Zdanevich ya.ru> app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild index fe20c2f17..48a9e3c3d 100644 --- a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild +++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild @@ -65,20 +65,21 @@ get_optional_dependencies() (($# == 1)) || die "${FUNCNAME[0]}(): invalid number of arguments: ${#} (1)" local -a array_package_names - local field_value ifield package_generic_name optional_packages_xmlline package_names installable_packages="" + local field_value ifield package_generic_name optional_packages_xmlline packages installable_packages="" local package_close_regexp="" \ package_generic_name_regexp="^.*|.*$" \ package_names_regexp="^.*|.*$" + reg="s@(^[[:blank:]]+|[[:blank:]]+$)$@@g" line=0 while IFS=$'\n' read -r optional_packages_xmlline; do if [[ "${optional_packages_xmlline}" =~ ${package_generic_name_regexp} ]]; then package_generic_name="$(echo "${optional_packages_xmlline}" | sed -r "s@${package_generic_name_regexp}@@g")" elif [[ "${optional_packages_xmlline}" =~ ${package_names_regexp} ]]; then - package_names="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e 's@(^[[:blank:]]+|[[:blank:]]+$)$@@g' )" + packages="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e "${reg}" )" ifield=0 # shellcheck disable=SC2206 - array_package_names=( ${package_names} ) + array_package_names=( ${packages} ) for (( ifield=0 ; ifield < ${#array_package_names[@]} ; ++ifield )); do field_value="${array_package_names[ifield]}" [[ ${field_value} =~ ^.+/.+$ ]] || continue # skip invalid package atoms