/[smeserver]/rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz6499.yum-plugin-priorities.patch
ViewVC logotype

Annotation of /rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz6499.yum-plugin-priorities.patch

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 23 23:28:56 2019 UTC (5 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-yum-2_6_0-20_el7_sme, smeserver-yum-2_6_0-60_el7_sme, smeserver-yum-2_6_0-39_el7_sme, smeserver-yum-2_6_0-28_el7_sme, smeserver-yum-2_6_0-29_el7_sme, smeserver-yum-2_6_0-48_el7_sme, smeserver-yum-2_6_0-21_el7_sme, smeserver-yum-2_6_0-46_el7_sme, smeserver-yum-2_6_0-34_el7_sme, smeserver-yum-2_6_0-52_el7_sme, smeserver-yum-2_6_0-62_el7_sme, smeserver-yum-2_6_0-49_el7_sme, smeserver-yum-2_6_0-44_el7_sme, smeserver-yum-2_6_0-47_el7_sme, smeserver-yum-2_6_0-51_el7_sme, smeserver-yum-2_6_0-45_el7_sme, smeserver-yum-2_6_0-40_el7_sme, smeserver-yum-2_6_0-50_el7_sme, smeserver-yum-2_6_0-25_el7_sme, smeserver-yum-2_6_0-31_el7_sme, smeserver-yum-2_6_0-27_el7_sme, smeserver-yum-2_6_0-22_el7_sme, smeserver-yum-2_6_0-24_el7_sme, smeserver-yum-2_6_0-61_el7_sme, smeserver-yum-2_6_0-64_el7_sme, smeserver-yum-2_6_0-23_el7_sme, smeserver-yum-2_6_0-36_el7_sme, smeserver-yum-2_6_0-26_el7_sme, smeserver-yum-2_6_0-32_el7_sme, smeserver-yum-2_6_0-58_el7_sme, smeserver-yum-2_6_0-55_el7_sme, smeserver-yum-2_6_0-19_el7_sme, smeserver-yum-2_6_0-37_el7_sme, smeserver-yum-2_6_0-41_el7_sme, smeserver-yum-2_6_0-30_el7_sme, smeserver-yum-2_6_0-33_el7_sme, smeserver-yum-2_6_0-35_el7_sme, smeserver-yum-2_6_0-57_el7_sme, smeserver-yum-2_6_0-54_el7_sme, smeserver-yum-2_6_0-42_el7_sme, smeserver-yum-2_6_0-56_el7_sme, smeserver-yum-2_6_0-53_el7_sme, smeserver-yum-2_6_0-43_el7_sme, smeserver-yum-2_6_0-59_el7_sme, smeserver-yum-2_6_0-38_el7_sme, smeserver-yum-2_6_0-63_el7_sme
* Wed Jan 23 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-19.sme
- add yum-priority as requirement [SME: 6499]
  add support for plugin priority using property priority im yum_repositories db
  initial priority to 10 for sme*, base and updates repos.
  property yum priority set as enabled as default

1 jpp 1.1 diff -Nur smeserver-yum-2.6.0.old/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories smeserver-yum-2.6.0/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories
2     --- smeserver-yum-2.6.0.old/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories 2019-01-23 18:01:10.696000000 -0500
3     +++ smeserver-yum-2.6.0/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories 2019-01-23 18:23:07.709000000 -0500
4     @@ -2,6 +2,8 @@
5     my $ydb = esmith::ConfigDB->open_ro('yum_repositories')
6     or die "Couldn't open yum_repositories";
7    
8     + my $priority = $yum{priority} || 'enabled';
9     +
10     $OUT = "\n";
11    
12     for my $repos ( $ydb->get_all_by_prop('type' => 'repository') )
13     @@ -42,11 +44,24 @@
14     $OUT .= "includepkgs=" . join(' ', split(/,/, $props{IncludePkgs})) . "\n";
15     }
16    
17     - if (exists $props{GPGKey})
18     + if ( exists $props{GPGKey})
19     {
20     $OUT .= "gpgkey" . '=' . $props{GPGKey} . "\n";
21     }
22    
23     + if ($priority eq 'enabled' && exists $props{Priority})
24     + {
25     + $OUT .= "priority" . '=' . $props{Priority} . "\n";
26     + }
27     + elsif ($priority eq 'enabled' && $repos->key =~ /^sme.*/)
28     + {
29     + $OUT .= "priority=10\n";
30     + }
31     + elsif ($priority eq 'enabled' && ( $repos->key eq 'base' || $repos->key eq 'updates'))
32     + {
33     + $OUT .= "priority=10\n";
34     + }
35     +
36     if (exists $props{DeltaRpmPercentage})
37     {
38     my $deltarpmpercentage = $props{DeltaRpmPercentage};

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