diff options
author | 2022-08-16 22:22:12 +0200 | |
---|---|---|
committer | 2022-08-16 22:22:12 +0200 | |
commit | d6db09c32455767d6216cb8fb7f2697f5f49ec4a (patch) | |
tree | e219999afbb63946baf923b464ede8a6fcd81475 | |
parent | *: init (diff) | |
download | company-ebuild-d6db09c32455767d6216cb8fb7f2697f5f49ec4a.tar.gz company-ebuild-d6db09c32455767d6216cb8fb7f2697f5f49ec4a.tar.bz2 company-ebuild-d6db09c32455767d6216cb8fb7f2697f5f49ec4a.zip |
company-ebuild.el: check if profiles/use.desc exists
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r-- | company-ebuild.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/company-ebuild.el b/company-ebuild.el index 2fbfedc..e2c34df 100644 --- a/company-ebuild.el +++ b/company-ebuild.el @@ -186,7 +186,8 @@ FILE-PATH is the location from which we start searching for Eclass files." (company-ebuild--find-repo-root buffer-file-name))) (awk-format "awk -F - '{ print $1 }' %s/profiles/use.desc")) - (when repo-root + (when (and repo-root + (file-exists-p (expand-file-name "profiles/use.desc" repo-root))) (setq company-ebuild--dynamic-keywords-use-flags (let ((awk-result (shell-command-to-string (format awk-format repo-root)))) |