From 6d5cfcc4dc2666e75bba775b79cc52b31ec884ef Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 12 Nov 2013 21:35:17 +0100 Subject: [PATCH] Exclude libmemcached from base, SOGo needs the version from sogo repository --- root/etc/e-smith/db/yum_repositories/migrate/12ExcludeBase | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 root/etc/e-smith/db/yum_repositories/migrate/12ExcludeBase diff --git a/root/etc/e-smith/db/yum_repositories/migrate/12ExcludeBase b/root/etc/e-smith/db/yum_repositories/migrate/12ExcludeBase new file mode 100644 index 0000000..6fd1919 --- /dev/null +++ b/root/etc/e-smith/db/yum_repositories/migrate/12ExcludeBase @@ -0,0 +1,6 @@ +{ + my $repo = $DB->get("base") or return ''; + my @exclude = split /[;,]/, ($repo->prop('Exclude') || ''); + push @exclude, 'libmemcached' unless (grep {$_ eq 'libmemcached'} @exclde); + $repo->set_prop('Exclude', join(',', @exclude)); +}