Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit f684b50

Browse files
committed
Add epel repo with only ccache included
Without the epel repo enabled on el mocks, the buildsys-build group will be unavailable for installation. This commit adds the epel repo to the mock config for el mocks so that the buildsys-build group can be found and the mock created. Only the ccache package is enabled, so nothing else will be brought in.
1 parent ae5b974 commit f684b50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/mock-config.erb

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ config_opts['legal_host_arches'] = (<%= if arch =~ /i\d86/ then "'i386', 'i586',
1818
config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
1919
config_opts['dist'] = '<%=dist%>' # only useful for --resultdir variable subst
2020
config_opts['macros']['%_host_vendor'] = '<%=vendor%>'
21+
2122
<% if dist == "el" and release.to_i == 5 %>
2223
config_opts['macros']['%dist'] = '.<%=dist%><%=release%>'
2324
<% end %>
@@ -67,4 +68,12 @@ name=yum.puppetlabs-devel
6768
baseurl=http://yum.puppetlabs.com/<%=dist%>/<%=prefix%><%=release%>/devel/<%=arch%>/
6869
enabled=1
6970
<% end %>
71+
72+
<% if dist.downcase == "el" %>
73+
[epel]
74+
name=epel
75+
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-<%=release%>&arch=<%=arch%>
76+
failovermethod=priority
77+
includepkgs=ccache
78+
<% end %>
7079
"""

0 commit comments

Comments
 (0)