Fix deltarpm support for CentOS 8
This commit is contained in:
parent
bfae451749
commit
bfc6f11a7e
@ -202,7 +202,12 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
|
|||||||
d += "RUN sed -i 's;installonly_limit=;installonly_limit=100500;' /etc/yum.conf\n"
|
d += "RUN sed -i 's;installonly_limit=;installonly_limit=100500;' /etc/yum.conf\n"
|
||||||
d += "RUN yum -y update\n"
|
d += "RUN yum -y update\n"
|
||||||
d += "RUN yum -y groupinstall 'Development Tools'\n"
|
d += "RUN yum -y groupinstall 'Development Tools'\n"
|
||||||
|
|
||||||
|
if sk.DistroRelease < "8" {
|
||||||
d += "RUN yum -y install deltarpm\n"
|
d += "RUN yum -y install deltarpm\n"
|
||||||
|
} else {
|
||||||
|
d += "RUN yum -y install drpm\n"
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
|
err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user