mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Merge pull request #1107 from Morganamilo/igorediffret
Ignore errors while diffing
This commit is contained in:
commit
bbc7cbba73
13
install.go
13
install.go
@ -249,7 +249,6 @@ func install(parser *arguments) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(toDiff) > 0 {
|
if len(toDiff) > 0 {
|
||||||
// TODO: PKGBUILD diffs should not return in case of err. Just print and continue
|
|
||||||
err = showPkgbuildDiffs(toDiff, cloned)
|
err = showPkgbuildDiffs(toDiff, cloned)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -765,11 +764,7 @@ func showPkgbuildDiffs(bases []Base, cloned stringset.StringSet) error {
|
|||||||
} else {
|
} else {
|
||||||
args = append(args, "--color=never")
|
args = append(args, "--color=never")
|
||||||
}
|
}
|
||||||
err = show(passToGit(dir, args...))
|
_ = show(passToGit(dir, args...))
|
||||||
if err != nil {
|
|
||||||
errMulti.Add(err)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
args := []string{"diff"}
|
args := []string{"diff"}
|
||||||
if useColor {
|
if useColor {
|
||||||
@ -779,11 +774,7 @@ func showPkgbuildDiffs(bases []Base, cloned stringset.StringSet) error {
|
|||||||
}
|
}
|
||||||
args = append(args, "--no-index", "/var/empty", dir)
|
args = append(args, "--no-index", "/var/empty", dir)
|
||||||
// git always returns 1. why? I have no idea
|
// git always returns 1. why? I have no idea
|
||||||
err := show(passToGit(dir, args...))
|
_ = show(passToGit(dir, args...))
|
||||||
if err != nil {
|
|
||||||
errMulti.Add(err)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user