From 5fa355781720cf81c7a3f2e453310e64e37fcda0 Mon Sep 17 00:00:00 2001 From: Jguer Date: Sat, 5 Oct 2019 02:10:15 +0100 Subject: [PATCH] Store completions in yay's cache folder instead of build directory --- cmd.go | 4 ++-- install.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd.go b/cmd.go index d6a798a9..596b5854 100644 --- a/cmd.go +++ b/cmd.go @@ -206,9 +206,9 @@ func handlePrint() (err error) { case cmdArgs.existsArg("w", "news"): err = printNewsFeed() case cmdArgs.existsDouble("c", "complete"): - err = completion.Show(alpmHandle, config.AURURL, config.BuildDir, config.CompletionInterval, true) + err = completion.Show(alpmHandle, config.AURURL, cacheHome, config.CompletionInterval, true) case cmdArgs.existsArg("c", "complete"): - err = completion.Show(alpmHandle, config.AURURL, config.BuildDir, config.CompletionInterval, false) + err = completion.Show(alpmHandle, config.AURURL, cacheHome, config.CompletionInterval, false) case cmdArgs.existsArg("s", "stats"): err = localStatistics() default: diff --git a/install.go b/install.go index 43b7be37..d5e42be9 100644 --- a/install.go +++ b/install.go @@ -316,7 +316,7 @@ func install(parser *arguments) (err error) { } } - go completion.Update(alpmHandle, config.AURURL, config.BuildDir, config.CompletionInterval, false) + go completion.Update(alpmHandle, config.AURURL, cacheHome, config.CompletionInterval, false) err = downloadPkgbuildsSources(do.Aur, incompatible) if err != nil {