summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2020-03-16 09:21:34 -0500
committerBen Kohler <bkohler@gentoo.org>2020-03-16 09:23:57 -0500
commit26620fa90335a7b7921d41711ee9baf82eb41784 (patch)
tree69e181905726430297c5bbeae8fc8ab1a5ee8173 /bin
parentv0.4.8 (diff)
downloadgentoolkit-26620fa90335a7b7921d41711ee9baf82eb41784.tar.gz
gentoolkit-26620fa90335a7b7921d41711ee9baf82eb41784.tar.bz2
gentoolkit-26620fa90335a7b7921d41711ee9baf82eb41784.zip
euse: don't fail on repos missing use.desc
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/euse3
1 files changed, 2 insertions, 1 deletions
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.