1 |
slords |
1.1 |
diff -up smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList.migratelist 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.migratelist 2010-06-02 09:40:54.000000000 -0600 |
3 |
|
|
+++ smeserver-yum-2.2.0/root/etc/e-smith/db/yum_repositories/migrate/40GlobalMirrorList 2010-06-02 10:09:05.000000000 -0600 |
4 |
|
|
@@ -4,7 +4,19 @@ |
5 |
|
|
{ |
6 |
|
|
my $repo = $DB->get($name) or next; |
7 |
|
|
|
8 |
|
|
- $repo->set_prop('MirrorList', "http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/$name-8") |
9 |
|
|
- if $repo->prop('MirrorList') =~ m{^file:///etc/yum.repos.d/mirrors-sme}; |
10 |
|
|
+ if ($repo->prop('MirrorList') =~ m{/7/|/sme.*-7$} || $repo->prop('BaseURL') =~ m{/7/|/sme.*-7$} || |
11 |
|
|
+ $repo->prop('MirrorList') =~ m{^file:///etc/yum.repos.d/mirrors-sme}) |
12 |
|
|
+ { |
13 |
|
|
+ $repo->delete_prop('MirrorList'); |
14 |
|
|
+ $repo->delete_prop('BaseURL'); |
15 |
|
|
+ unlink "/var/cache/yum/$name/repomd.xml" if -f "/var/cache/yum/$name/repomd.xml"; |
16 |
|
|
+ unlink "/var/cache/yum/$name/mirrorlist.txt" if -f "/var/cache/yum/$name/mirrorlist.txt"; |
17 |
|
|
+ if ($repo->prop('status') eq 'enabled') |
18 |
|
|
+ { |
19 |
|
|
+ unlink '/home/e-smith/db/yum_available' if -f '/home/e-smith/db/yum_available'; |
20 |
|
|
+ unlink '/home/e-smith/db/yum_updates' if -f '/home/e-smith/db/yum_updates'; |
21 |
|
|
+ unlink '/home/e-smith/db/yum_updates' if -f '/home/e-smith/db/yum_updates'; |
22 |
|
|
+ } |
23 |
|
|
+ } |
24 |
|
|
} |
25 |
|
|
} |