/[smeserver]/rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-migratelist.patch
ViewVC logotype

Contents of /rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-migratelist.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Jun 2 17:10:51 2010 UTC (14 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-yum-2_2_0-24_el5_sme, smeserver-yum-2_2_0-22_el5_sme, smeserver-yum-2_2_0-16_el5_sme, smeserver-yum-2_2_0-26_el5_sme, smeserver-yum-2_2_0-18_el5_sme, smeserver-yum-2_2_0-17_el5_sme, smeserver-yum-2_2_0-20_el5_sme, smeserver-yum-2_2_0-23_el5_sme, smeserver-yum-2_2_0-19_el5_sme, smeserver-yum-2_2_0-21_el5_sme, smeserver-yum-2_2_0-25_el5_sme, HEAD
Changes since 1.1: +3 -6 lines
* Wed Jun 02 2010 Shad L. Lords <slords@mail.com> 2.2.0-16.sme
- Fix yum database removal (missing one) [SME: 5707]

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,16 @@
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/$_" foreach qw(repomd.xml mirrorlist.txt);
16 + if ($repo->prop('status') eq 'enabled')
17 + {
18 + unlink "/home/e-smith/db/yum_$_" foreach qw(available updates installed);
19 + }
20 + }
21 }
22 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed