1 |
diff -up smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migrate_undefined smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList |
2 |
--- smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migrate_undefined 2010-06-12 15:51:54.000000000 -0600 |
3 |
+++ smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList 2010-06-12 15:51:25.000000000 -0600 |
4 |
@@ -4,8 +4,10 @@ |
5 |
{ |
6 |
my $repo = $DB->get($name) or next; |
7 |
|
8 |
- if ($repo->prop('MirrorList') =~ m{/7/|/sme.*-7$} || $repo->prop('BaseURL') =~ m{/7/|/sme.*-7$} || |
9 |
- $repo->prop('MirrorList') =~ m{^file:///etc/yum.repos.d/mirrors-sme}) |
10 |
+ my $mirrorlist = $repo->prop('MirrorList') || ''; |
11 |
+ my $baseurl = $repo->prop('BaseURL') || ''; |
12 |
+ |
13 |
+ if ($mirrorlist =~ m{^file:///etc/yum.repos.d/mirrors-sme|/7/|/sme.*-7$} || $baseurl =~ m{/7/|/sme.*-7$}) |
14 |
{ |
15 |
$repo->delete_prop('MirrorList'); |
16 |
$repo->delete_prop('BaseURL'); |