Store completions in yay's cache folder instead of build directory

This commit is contained in:
Jguer 2019-10-05 02:10:15 +01:00
parent c5c2e906d3
commit 5fa3557817
No known key found for this signature in database
GPG Key ID: 6D6CC9BEA8556B35
2 changed files with 3 additions and 3 deletions

4
cmd.go
View File

@ -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:

View File

@ -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 {