1
0
Fork 0
master
dump_stack() 2023-05-13 09:09:29 +00:00
parent 599ce03ca4
commit 9b987bcc82
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 1 additions and 8 deletions

View File

@ -2,7 +2,6 @@ package debian
import (
"errors"
"os/user"
"regexp"
"strconv"
"strings"
@ -128,13 +127,7 @@ var (
func MatchImagePkg(km config.KernelMask) (pkgs []string, err error) {
if CachePath == "" {
var usr *user.User
usr, err = user.Current()
if err != nil {
return
}
CachePath = usr.HomeDir + "/.out-of-tree/debian.cache"
CachePath = config.File("debian.cache")
log.Debug().Msgf("Use default kernels cache path: %s", CachePath)
} else {
log.Debug().Msgf("Debian kernels cache path: %s", CachePath)