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

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

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


Revision 1.1 - (hide annotations) (download)
Mon Oct 13 14:58:50 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: smeserver-yum-2_0_0-4_el4_sme, smeserver-yum-2_0_0-6_el4_sme, smeserver-yum-2_0_0-15_el4_sme, smeserver-yum-2_0_0-3_el4_sme, smeserver-yum-2_0_0-12_el4_sme, smeserver-yum-2_0_0-7_el4_sme, smeserver-yum-2_0_0-8_el4_sme, smeserver-yum-2_0_0-17_el4_sme, smeserver-yum-2_0_0-11_el4_sme, smeserver-yum-2_0_0-14_el4_sme, smeserver-yum-2_0_0-13_el4_sme, smeserver-yum-2_0_0-16_el4_sme, smeserver-yum-2_0_0-5_el4_sme, smeserver-yum-2_0_0-10_el4_sme, HEAD
Move repos to repodir

1 slords 1.1 diff -ruN smeserver-yum-2.0.0.repodir/createlinks smeserver-yum-2.0.0/createlinks
2     --- smeserver-yum-2.0.0.repodir/createlinks 2008-10-07 08:21:29.000000000 -0600
3     +++ smeserver-yum-2.0.0/createlinks 2008-10-13 08:21:19.000000000 -0600
4     @@ -4,7 +4,7 @@
5     use File::Basename;
6     use File::Path;
7    
8     -foreach my $file (qw(/etc/yum.conf))
9     +foreach my $file (qw(/etc/yum.conf /etc/yum.smerepos.d/sme-base.repo))
10     {
11     templates2events($file, qw(yum-modify bootstrap-console-save));
12     }
13     diff -ruN smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs
14     --- smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs 2005-05-27 04:34:42.000000000 -0600
15     +++ smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.conf/10main_installonlypkgs 2008-10-13 08:27:10.000000000 -0600
16     @@ -1 +1 @@
17     -installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
18     +installonlypkgs=kernel kernel-hugemem kernel-largesmp kernel-smp kernel-xenU
19     diff -ruN smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir
20     --- smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir 2008-10-07 08:21:29.000000000 -0600
21     +++ smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.conf/10main_reposdir 2008-10-13 08:22:31.000000000 -0600
22     @@ -1 +1 @@
23     -reposdir=
24     +reposdir=/etc/yum.smerepos.d
25     diff -ruN smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.conf/20repositories smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.conf/20repositories
26     --- smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.conf/20repositories 2008-10-07 08:21:29.000000000 -0600
27     +++ smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.conf/20repositories 1969-12-31 17:00:00.000000000 -0700
28     @@ -1,53 +0,0 @@
29     -{
30     - my $ydb = esmith::ConfigDB->open_ro('yum_repositories')
31     - or die "Couldn't open yum_repositories";
32     -
33     - $OUT = "\n";
34     -
35     - for my $repos ( $ydb->get_all_by_prop('type' => 'repository') )
36     - {
37     - my %props = ($DB->get('yum')->props(), $repos->props());
38     -
39     - $OUT .= "[" . $repos->key . "]\n";
40     -
41     - $OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0)
42     - . "\n";
43     -
44     - if ( exists $props{MirrorList} )
45     - {
46     - $OUT .= 'mirrorlist=' . $props{MirrorList} . "\n";
47     - }
48     - else
49     - {
50     - $OUT .= 'baseurl=' . $props{BaseURL} . "\n";
51     - }
52     -
53     - for my $prop (qw(Name))
54     - {
55     - $OUT .= lc($prop) . '=' . $props{$prop} . "\n";
56     - }
57     -
58     - for my $prop (qw(GPGCheck EnableGroups))
59     - {
60     - $OUT .= lc($prop) . '=' . ($props{$prop} eq "yes" ? 1 : 0) . "\n";
61     - }
62     -
63     - if (exists $props{Exclude})
64     - {
65     - $OUT .= "exclude=" . join(' ', split(/,/, $props{Exclude})) . "\n";
66     - }
67     -
68     - if (exists $props{IncludePkgs})
69     - {
70     - $OUT .= "includepkgs=" . join(' ', split(/,/, $props{IncludePkgs})) . "\n";
71     - }
72     -
73     - if (exists $props{GPGKey})
74     - {
75     - $OUT .= "gpgkey" . '=' . $props{GPGKey} . "\n";
76     - }
77     -
78     -
79     - $OUT .= "\n";
80     - }
81     -}
82     diff -ruN smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories
83     --- smeserver-yum-2.0.0.repodir/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories 1969-12-31 17:00:00.000000000 -0700
84     +++ smeserver-yum-2.0.0/root/etc/e-smith/templates/etc/yum.smerepos.d/sme-base.repo/20repositories 2008-10-07 08:21:29.000000000 -0600
85     @@ -0,0 +1,53 @@
86     +{
87     + my $ydb = esmith::ConfigDB->open_ro('yum_repositories')
88     + or die "Couldn't open yum_repositories";
89     +
90     + $OUT = "\n";
91     +
92     + for my $repos ( $ydb->get_all_by_prop('type' => 'repository') )
93     + {
94     + my %props = ($DB->get('yum')->props(), $repos->props());
95     +
96     + $OUT .= "[" . $repos->key . "]\n";
97     +
98     + $OUT .= "enabled=" . (($repos->prop('status') eq 'enabled') ? 1 : 0)
99     + . "\n";
100     +
101     + if ( exists $props{MirrorList} )
102     + {
103     + $OUT .= 'mirrorlist=' . $props{MirrorList} . "\n";
104     + }
105     + else
106     + {
107     + $OUT .= 'baseurl=' . $props{BaseURL} . "\n";
108     + }
109     +
110     + for my $prop (qw(Name))
111     + {
112     + $OUT .= lc($prop) . '=' . $props{$prop} . "\n";
113     + }
114     +
115     + for my $prop (qw(GPGCheck EnableGroups))
116     + {
117     + $OUT .= lc($prop) . '=' . ($props{$prop} eq "yes" ? 1 : 0) . "\n";
118     + }
119     +
120     + if (exists $props{Exclude})
121     + {
122     + $OUT .= "exclude=" . join(' ', split(/,/, $props{Exclude})) . "\n";
123     + }
124     +
125     + if (exists $props{IncludePkgs})
126     + {
127     + $OUT .= "includepkgs=" . join(' ', split(/,/, $props{IncludePkgs})) . "\n";
128     + }
129     +
130     + if (exists $props{GPGKey})
131     + {
132     + $OUT .= "gpgkey" . '=' . $props{GPGKey} . "\n";
133     + }
134     +
135     +
136     + $OUT .= "\n";
137     + }
138     +}

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