forked from ALHP/ALHP.GO
fail on non HTTP 200
This commit is contained in:
2
utils.go
2
utils.go
@@ -275,7 +275,7 @@ func (p *BuildPackage) prepareKernelPatches() error {
|
|||||||
// TODO: support all sums that makepkg also supports
|
// TODO: support all sums that makepkg also supports
|
||||||
// get sum
|
// get sum
|
||||||
resp, err := http.Get(conf.KernelPatches[curVer])
|
resp, err := http.Get(conf.KernelPatches[curVer])
|
||||||
if err != nil {
|
if err != nil || resp.StatusCode != 200 {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
h := sha256.New()
|
h := sha256.New()
|
||||||
|
Reference in New Issue
Block a user