public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
Date: Wed, 24 Jul 2024 07:28:22 +0000 (UTC)	[thread overview]
Message-ID: <1721331520.51f21f7d796696339a5a5f3dfaf4ee0a5f51c320.davidroman@gentoo> (raw)

commit:     51f21f7d796696339a5a5f3dfaf4ee0a5f51c320
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Thu Jul 18 19:38:40 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> 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 <zdanevich.vitaly <AT> 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>" \
 		  package_generic_name_regexp="^.*<GenericName>|</GenericName>.*$" \
 		  package_names_regexp="^.*<PackageName>|</PackageName>.*$"
+		  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


             reply	other threads:[~2024-07-24  7:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-24  7:28 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-10 10:31 [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/phoronix-test-suite/ David Roman
2024-09-10 10:49 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-09-10 10:31 [gentoo-commits] repo/proj/guru:dev " David Roman
2024-09-10 10:49 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-07-24  7:28 David Roman
2024-07-24  7:28 David Roman
2024-07-24  7:28 David Roman
2022-10-17 11:26 Haelwenn Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1721331520.51f21f7d796696339a5a5f3dfaf4ee0a5f51c320.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox