--- rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec 2018/12/29 04:21:21 1.17 +++ rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec 2018/12/29 05:29:21 1.18 @@ -1,6 +1,6 @@ %define name smeserver-extrarepositories %define version 0.1 -%define release 12 +%define release 13 Summary: easy configuration of extra yum repo Name: %{name} Version: %{version} @@ -18,6 +18,10 @@ AutoReqProv: no Provides configuration for external yum repository comaptible with Koozali SME Server. %changelog +* Sat Dec 29 2018 Jean-Philipe Pialasse 0.1-13.sme +- fix typo in asterisk-current +- fix typo in migrate fragment for zmrepo + * Fri Dec 28 2018 Jean-Philipe Pialasse 0.1-12.sme - zoneminder needs ffmpeg from zmrepo [SME: 10539] @@ -126,7 +130,7 @@ REPO['EnableGroups']='yes' REPO['GPGCheck']='no' REPO['Visible']='no' REPO['status']='disabled' -REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/' +REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/current/$basearch/' REPO['MirrorList']='' REPO['GPGKey']='' REPO['Exclude']='' @@ -903,14 +907,28 @@ cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smi { my $repo = $DB->get($name) or next; my $BaseURL = $repo->prop('BaseURL') || ''; - $BaseURL = s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; - $repo->set_prop('Exclude', join(',', @exclude)); + $BaseURL =~ s/zmrepo.mehvc.com/zmrepo.zoneminder.com/g; + $repo->set_prop('BaseURL', $BaseURL); + $repo->delete('Exclude'); } } EOF +cat << 'EOF' >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/10asterisk +{ + for my $name ( qw(asterisk-current) ) + { + my $repo = $DB->get($name) or next; + my $BaseURL = $repo->prop('BaseURL') || ''; + $BaseURL =~ s/centos\$/centos\/\$/g; + $repo->set_prop('BaseURL', $BaseURL); + } + +} + +EOF