From a658fbd07c7b026230707960d08dd5eae5422b39 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 23 Nov 2015 09:20:19 +0100 Subject: [PATCH] Exclude php-horde-horde from Epel --- root/etc/e-smith/db/yum_repositories/defaults/epel/Exclude | 2 +- root/etc/e-smith/db/yum_repositories/migrate/12ExcludeEpel | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 root/etc/e-smith/db/yum_repositories/migrate/12ExcludeEpel diff --git a/root/etc/e-smith/db/yum_repositories/defaults/epel/Exclude b/root/etc/e-smith/db/yum_repositories/defaults/epel/Exclude index 2cfffd0..50b6288 100644 --- a/root/etc/e-smith/db/yum_repositories/defaults/epel/Exclude +++ b/root/etc/e-smith/db/yum_repositories/defaults/epel/Exclude @@ -1 +1 @@ -gnustep-make,libmemcached,hylafax+ +gnustep-make,libmemcached,hylafax+,php-horde-horde diff --git a/root/etc/e-smith/db/yum_repositories/migrate/12ExcludeEpel b/root/etc/e-smith/db/yum_repositories/migrate/12ExcludeEpel new file mode 100644 index 0000000..763cd57 --- /dev/null +++ b/root/etc/e-smith/db/yum_repositories/migrate/12ExcludeEpel @@ -0,0 +1,6 @@ +{ + my $repo = $DB->get("epel") or return ''; + my @exclude = split /[;,]/, ($repo->prop('Exclude') || ''); + push @exclude, 'php-horde-horde' unless (grep {$_ eq 'php-horde-horde'} @exclude); + $repo->set_prop('Exclude', join(',', @exclude)); +}