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

Contents 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.2 - (show annotations) (download)
Mon Jul 11 15:20:36 2022 UTC (2 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
bump version

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