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)); +}