diff options
author | Ben Kohler <bkohler@gentoo.org> | 2020-03-16 09:21:34 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2020-03-16 09:23:57 -0500 |
commit | 26620fa90335a7b7921d41711ee9baf82eb41784 (patch) | |
tree | 69e181905726430297c5bbeae8fc8ab1a5ee8173 /bin | |
parent | v0.4.8 (diff) | |
download | gentoolkit-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-x | bin/euse | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |