Fix issues

This commit is contained in:
Feresey 2020-08-08 00:59:55 +03:00 committed by J Guerreiro
parent 8074179112
commit 0adda5da4f
2 changed files with 3 additions and 1 deletions

View file

@ -1103,7 +1103,7 @@ func buildInstallPkgbuilds(
}
if errMake := show(passToMakepkg(dir, args...)); errMake != nil {
return errors.New(gotext.Get("error making: %s", base.String))
return errors.New(gotext.Get("error making: %s", base.String()))
}
}

View file

@ -70,6 +70,8 @@ func (config *Configuration) SaveConfig(configPath string) error {
if err != nil {
return err
}
// https://github.com/Jguer/yay/issues/1325
marshalledinfo = append(marshalledinfo, '\n')
in, err := os.OpenFile(configPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644)
if err != nil {
return err