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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 522AE138350 for ; Mon, 16 Mar 2020 14:24:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CD55E0D0D; Mon, 16 Mar 2020 14:24:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 636C3E0D0D for ; Mon, 16 Mar 2020 14:24:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 04E6434F06F for ; Mon, 16 Mar 2020 14:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97CA0AF for ; Mon, 16 Mar 2020 14:24:08 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1584368637.26620fa90335a7b7921d41711ee9baf82eb41784.bkohler@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: bin/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: bin/euse X-VCS-Directories: bin/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 26620fa90335a7b7921d41711ee9baf82eb41784 X-VCS-Branch: master Date: Mon, 16 Mar 2020 14:24:08 +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: 4e00bc70-c484-48ab-b39b-2b9f26c9b0f7 X-Archives-Hash: 2602bbbc4b9d602e09af23b014156a0e commit: 26620fa90335a7b7921d41711ee9baf82eb41784 Author: Ben Kohler gentoo org> AuthorDate: Mon Mar 16 14:21:34 2020 +0000 Commit: Ben Kohler gentoo org> CommitDate: Mon Mar 16 14:23:57 2020 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=26620fa9 euse: don't fail on repos missing use.desc Signed-off-by: Ben Kohler gentoo.org> bin/euse | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/euse b/bin/euse index 56fc917..15a2a6e 100755 --- a/bin/euse +++ b/bin/euse @@ -842,7 +842,8 @@ showinstdesc() { while [ -n "${1}" ]; do case "${SCOPE}" in "global") - if desc=$(grep "^${1} *-" ${PORTAGE_REPO_PATHS[@]/%//profiles/use.desc}); then + local desc=$(grep "^${1} *-" ${PORTAGE_REPO_PATHS[@]/%//profiles/use.desc} 2>/dev/null) + if [ ! -z "${desc}" ]; then get_flagstatus "${1}" echo "$desc" # get list of installed packages matching this USE flag.