commit: 26620fa90335a7b7921d41711ee9baf82eb41784
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 16 14:21:34 2020 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> 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 <bkohler <AT> 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.