diff options
Diffstat (limited to 'company-ebuild.el')
-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)))) |