1 |
commit: d6db09c32455767d6216cb8fb7f2697f5f49ec4a |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 16 20:22:12 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 16 20:22:12 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=d6db09c3 |
7 |
|
8 |
company-ebuild.el: check if profiles/use.desc exists |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
company-ebuild.el | 3 ++- |
13 |
1 file changed, 2 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/company-ebuild.el b/company-ebuild.el |
16 |
index 2fbfedc..e2c34df 100644 |
17 |
--- a/company-ebuild.el |
18 |
+++ b/company-ebuild.el |
19 |
@@ -186,7 +186,8 @@ FILE-PATH is the location from which we start searching for Eclass files." |
20 |
(company-ebuild--find-repo-root buffer-file-name))) |
21 |
(awk-format |
22 |
"awk -F - '{ print $1 }' %s/profiles/use.desc")) |
23 |
- (when repo-root |
24 |
+ (when (and repo-root |
25 |
+ (file-exists-p (expand-file-name "profiles/use.desc" repo-root))) |
26 |
(setq company-ebuild--dynamic-keywords-use-flags |
27 |
(let ((awk-result |
28 |
(shell-command-to-string (format awk-format repo-root)))) |