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

Annotation of /rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-migrate_undefined.patch

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


Revision 1.1 - (hide annotations) (download)
Sat Jun 12 21:55:35 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-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
* Sat Jun 12 2010 Shad L. Lords <slords@mail.com> 2.2.0-17.sme
- Fix migrate fragment to not throw warnings [SME: 5705]

1 slords 1.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');

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