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

Diff 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 | View Patch Patch

Revision 1.1 by wellsi, Sat Mar 17 02:00:23 2012 UTC Revision 1.3 by slords, Thu Mar 22 22:48:35 2012 UTC
# Line 1  Line 1 
1  diff -ruN smeserver-yum-2.0.0.old/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos  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.old/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos  2008-10-07 15:21:29.000000000 +0100  --- 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/migrate/20CentOSRepos      2012-03-15 06:14:27.000000000 +0000  +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/BaseURL    2012-03-22 11:45:24.866538302 -0600
4  @@ -4,5 +4,6 @@  @@ -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    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/MirrirList.CentOS  2008-10-07 08:21:29.000000000 -0600
8    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/addons/MirrorList 1969-12-31 17:00:00.000000000 -0700
9    @@ -1 +0,0 @@
10    -http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
11    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
12    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/BaseURL.CentOS       2012-03-22 11:45:24.866538302 -0600
13    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/BaseURL      2012-03-22 11:45:24.866538302 -0600
14    @@ -0,0 +1 @@
15    +http://vault.centos.org/4.9/os/$basearch
16    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
17    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/MirrirList.CentOS    2008-10-07 08:21:29.000000000 -0600
18    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/base/MirrorList   1969-12-31 17:00:00.000000000 -0700
19    @@ -1 +0,0 @@
20    -http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
21    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
22    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/BaseURL.CentOS 2012-03-22 11:45:24.874538802 -0600
23    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/BaseURL        2012-03-22 11:45:24.874538802 -0600
24    @@ -0,0 +1 @@
25    +http://vault.centos.org/4.9/centosplus/$basearch
26    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
27    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/MirrirList.CentOS      2008-10-07 08:21:29.000000000 -0600
28    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/centosplus/MirrorList     1969-12-31 17:00:00.000000000 -0700
29    @@ -1 +0,0 @@
30    -http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
31    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
32    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/BaseURL.CentOS    2012-03-22 11:45:24.878539052 -0600
33    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/BaseURL   2012-03-22 11:45:24.878539052 -0600
34    @@ -0,0 +1 @@
35    +http://vault.centos.org/4.9/contrib/$basearch
36    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
37    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/MirrirList.CentOS 2008-10-07 08:21:29.000000000 -0600
38    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/contrib/MirrorList        1969-12-31 17:00:00.000000000 -0700
39    @@ -1 +0,0 @@
40    -http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
41    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
42    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/BaseURL.CentOS     2012-03-22 11:45:24.882539302 -0600
43    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/BaseURL    2012-03-22 11:45:24.882539302 -0600
44    @@ -0,0 +1 @@
45    +http://vault.centos.org/4.9/extras/$basearch
46    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
47    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/MirrirList.CentOS  2008-10-07 08:21:29.000000000 -0600
48    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/extras/MirrorList 1969-12-31 17:00:00.000000000 -0700
49    @@ -1 +0,0 @@
50    -http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
51    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
52    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/BaseURL.CentOS    2012-03-22 11:45:24.886539552 -0600
53    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/BaseURL   2012-03-22 11:45:24.886539552 -0600
54    @@ -0,0 +1 @@
55    +http://vault.centos.org/4.9/updates/$basearch
56    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
57    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/MirrirList.CentOS 2008-10-07 08:21:29.000000000 -0600
58    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/defaults/updates/MirrorList        1969-12-31 17:00:00.000000000 -0700
59    @@ -1 +0,0 @@
60    -http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
61    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
62    --- smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos.CentOS       2008-10-07 08:21:29.000000000 -0600
63    +++ smeserver-yum-2.0.0/root/etc/e-smith/db/yum_repositories/migrate/20CentOSRepos      2012-03-22 11:46:02.464888052 -0600
64    @@ -1,8 +1,12 @@
65     {
66    -    for my $name ( qw(base updates) )
67    +    for my $name ( qw(addons base centosplus contrib extras updates) )
68         {
69          my $repo = $DB->get($name) or next;          my $repo = $DB->get($name) or next;
70    +       my $mirror = $DB->get_prop_and_delete($name, 'MirrorList');
71    +       next unless defined $mirror;
72    
73           $repo->set_prop('Visible', 'yes');  -        $repo->set_prop('Visible', 'yes');
74  +        $repo->set_prop('status', 'disabled');          +       my $reponame = $name;
75    +       $reponame =~ s/base/os/;
76    +       $repo->set_prop('BaseURL', "http://vault.centos.org/4.9/$reponame/\$basearch");
77       }       }
78   }   }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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