/[smeserver]/rpms/smeserver-yum/sme7/smeserver-yum-2.0.0-CentOS.patch
ViewVC logotype

Annotation of /rpms/smeserver-yum/sme7/smeserver-yum-2.0.0-CentOS.patch

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


Revision 1.2 - (hide annotations) (download)
Thu Mar 22 18:19:05 2012 UTC (12 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-yum-2_0_0-15_el4_sme
Changes since 1.1: +50 -6 lines
* Thu Mar 22 2012 Shad L. Lords <slords@mail.com> 2.0.0-15.sme
- Point BaseURL to vault only if we find MirrorList property [SME: 6873]
- Don't adjust visible or enabled on CentOS repos

1 slords 1.2 diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/BaseURL.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/BaseURL
2     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/BaseURL.CentOS 2012-03-22 11:45:24.866538302 -0600
3     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/BaseURL 2012-03-22 11:45:24.866538302 -0600
4     @@ -0,0 +1 @@
5     +http://vault.centos.org/4.9/addons/$basearch
6     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/MirrorList.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/MirrorList
7     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/BaseURL.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/BaseURL
8     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/BaseURL.CentOS 2012-03-22 11:45:24.866538302 -0600
9     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/BaseURL 2012-03-22 11:45:24.866538302 -0600
10     @@ -0,0 +1 @@
11     +http://vault.centos.org/4.9/os/$basearch
12     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/MirrorList.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/MirrorList
13     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/BaseURL.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/BaseURL
14     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/BaseURL.CentOS 2012-03-22 11:45:24.874538802 -0600
15     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/BaseURL 2012-03-22 11:45:24.874538802 -0600
16     @@ -0,0 +1 @@
17     +http://vault.centos.org/4.9/centosplus/$basearch
18     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/MirrorList.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/MirrorList
19     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/BaseURL.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/BaseURL
20     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/BaseURL.CentOS 2012-03-22 11:45:24.878539052 -0600
21     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/BaseURL 2012-03-22 11:45:24.878539052 -0600
22     @@ -0,0 +1 @@
23     +http://vault.centos.org/4.9/contrib/$basearch
24     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/MirrorList.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/MirrorList
25     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/BaseURL.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/BaseURL
26     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/BaseURL.CentOS 2012-03-22 11:45:24.882539302 -0600
27     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/BaseURL 2012-03-22 11:45:24.882539302 -0600
28     @@ -0,0 +1 @@
29     +http://vault.centos.org/4.9/extras/$basearch
30     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/MirrorList.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/MirrorList
31     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/BaseURL.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/BaseURL
32     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/BaseURL.CentOS 2012-03-22 11:45:24.886539552 -0600
33     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/BaseURL 2012-03-22 11:45:24.886539552 -0600
34     @@ -0,0 +1 @@
35     +http://vault.centos.org/4.9/updates/$basearch
36     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/MirrorList.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/MirrorList
37     diff -up smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos.CentOS smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos
38     --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos.CentOS 2008-10-07 08:21:29.000000000 -0600
39     +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos 2012-03-22 11:46:02.464888052 -0600
40     @@ -1,8 +1,12 @@
41     {
42     - for my $name ( qw(base updates) )
43     + for my $name ( qw(addons base centosplus contrib extras updates) )
44     {
45 wellsi 1.1 my $repo = $DB->get($name) or next;
46 slords 1.2 + my $mirror = $DB->get_prop_and_delete($name, 'MirrorList');
47     + next unless defined $mirror;
48 wellsi 1.1
49 slords 1.2 - $repo->set_prop('Visible', 'yes');
50     + my $reponame = $name;
51     + $reponame =~ s/base/os/;
52     + $repo->set_prop('BaseURL', "http://vault.centos.org/4.9/$reponame/\$basearch");
53 wellsi 1.1 }
54     }

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