/[smeserver]/rpms/smeserver-yum/sme7/smeserver-yum-1.2.0-FixUninitializedValue.patch
ViewVC logotype

Annotation of /rpms/smeserver-yum/sme7/smeserver-yum-1.2.0-FixUninitializedValue.patch

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


Revision 1.2 - (hide annotations) (download)
Tue Oct 7 14:47:50 2008 UTC (15 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 bytegw 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-yum-1.2.0/root/etc/e-smith/db/yum_repositories/migrate/10GPG_and_Groups mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/db/yum_repositories/migrate/10GPG_and_Groups
2     --- smeserver-yum-1.2.0/root/etc/e-smith/db/yum_repositories/migrate/10GPG_and_Groups 2005-09-26 03:30:54.000000000 +0100
3     +++ mezzanine_patched_smeserver-yum-1.2.0/root/etc/e-smith/db/yum_repositories/migrate/10GPG_and_Groups 2007-11-30 14:49:43.000000000 +0000
4     @@ -1,14 +1,16 @@
5     {
6     for my $repo ($DB->get_all_by_prop(type => 'repository'))
7     {
8     - %props = $repo->props;
9     + %props = $repo->props;
10    
11     - $props{GPGCheck} = 'yes' if ($props{GPGCheck} =~ /1/);
12     - $props{GPGCheck} = 'no' if ($props{GPGCheck} =~ /0/);
13     -
14     - $props{EnableGroups} = 'yes' if ($props{EnableGroups} =~ /1/);
15     - $props{EnableGroups} = 'no' if ($props{EnableGroups} =~ /0/);
16     -
17     - $repo->merge_props(%props);
18     + if (defined $props{GPGCheck}) {
19     + $props{GPGCheck} = 'yes' if ($props{GPGCheck} =~ /1/);
20     + $props{GPGCheck} = 'no' if ($props{GPGCheck} =~ /0/);
21     + }
22     + if (defined $props{EnableGroups}) {
23     + $props{EnableGroups} = 'yes' if ($props{EnableGroups} =~ /1/);
24     + $props{EnableGroups} = 'no' if ($props{EnableGroups} =~ /0/);
25     + }
26     + $repo->merge_props(%props);
27     }
28     }

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