Merge pull request #50 from pabroff/modify

Fix yes no infinite loop while doing yum update --changelog on root@CentOS #47
This commit is contained in:
Kota Kanbe
2016-05-10 13:58:28 +09:00

View File

@@ -462,7 +462,7 @@ func (o *redhat) parseYumCheckUpdateLine(line string) (models.PackageInfo, error
func (o *redhat) getChangelog(packageNames string) (stdout string, err error) {
command := ""
if o.ServerInfo.User == "root" {
command = "yes no | "
command = "echo N | "
}
if 0 < len(config.Conf.HTTPProxy) {
command += util.ProxyEnv()