fix centos yum makecache --assumeyes (#872)

This commit is contained in:
Shigechika AIKAWA
2019-07-17 11:10:20 +09:00
committed by Kota Kanbe
parent a977533c78
commit d770034788

View File

@@ -351,9 +351,9 @@ func (o *redhatBase) parseInstalledPackagesLine(line string) (models.Package, er
}
func (o *redhatBase) yumMakeCache() error {
cmd := `yum makecache`
cmd := `yum makecache --assumeyes`
r := o.exec(util.PrependProxyEnv(cmd), o.sudo.yumMakeCache())
if !r.isSuccess() {
if !r.isSuccess(0, 1) {
return xerrors.Errorf("Failed to SSH: %s", r)
}
return nil