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 |
} |