nosudo repoquery

This commit is contained in:
kota kanbe
2017-08-15 10:37:11 +09:00
parent 843f1a462f
commit fd19fa2082

View File

@@ -306,7 +306,7 @@ func (o *redhat) scanUpdatablePackages() (models.Packages, error) {
cmd += " --enablerepo=" + repo
}
r := o.exec(util.PrependProxyEnv(cmd), o.sudo())
r := o.exec(util.PrependProxyEnv(cmd), noSudo)
if !r.isSuccess() {
return nil, fmt.Errorf("Failed to SSH: %s", r)
}