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

Contents of /rpms/smeserver-yum/sme7/smeserver-yum-2.0.0-nosemi.patch

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


Revision 1.1 - (show annotations) (download)
Tue Sep 15 16:37:04 2009 UTC (15 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: smeserver-yum-2_0_0-15_el4_sme, smeserver-yum-2_0_0-12_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-10_el4_sme, HEAD
* Tue Sep 15 2009 Shad L. Lords <slords@mail.com> 2.0.0-10.sme
- set unsaved changes in yum event [SME: 2081]
- move yum warming to sme yum plugin [SME: 5472]
- ensure file exists before unlinking [SME: 4169]
- remove semicolons from yum plugin

1 --- smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py.nosemi 2008-10-07 08:21:29.000000000 -0600
2 +++ smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py 2009-09-15 10:04:46.000000000 -0600
3 @@ -8,58 +8,58 @@
4 requires_api_version = '2.1'
5 plugin_type = (TYPE_CORE,)
6
7 -events_path = '/etc/e-smith/events';
8 -initialize_database = events_path + '/actions/initialize-default-databases';
9 -navigation_conf = events_path + '/actions/navigation-conf';
10 -signal_event = '/sbin/e-smith/signal-event';
11 -status_file = '/var/run/yum.status';
12 +events_path = '/etc/e-smith/events'
13 +initialize_database = events_path + '/actions/initialize-default-databases'
14 +navigation_conf = events_path + '/actions/navigation-conf'
15 +signal_event = '/sbin/e-smith/signal-event'
16 +status_file = '/var/run/yum.status'
17
18 def report_yum_status(status):
19 - fileHandle = open(status_file, 'w');
20 - fileHandle.write(status);
21 - fileHandle.close();
22 + fileHandle = open(status_file, 'w')
23 + fileHandle.write(status)
24 + fileHandle.close()
25
26 def config_hook(conduit):
27 - report_yum_status('config');
28 + report_yum_status('config')
29
30 def init_hook(conduit):
31 - report_yum_status('init');
32 + report_yum_status('init')
33
34 def predownload_hook(conduit):
35 - report_yum_status('predownload');
36 + report_yum_status('predownload')
37
38 def postdownload_hook(conduit):
39 - report_yum_status('postdownload');
40 + report_yum_status('postdownload')
41
42 def prereposetup_hook(conduit):
43 - report_yum_status('prereposetup');
44 + report_yum_status('prereposetup')
45
46 def postreposetup_hook(conduit):
47 - report_yum_status('postreposetup');
48 + report_yum_status('postreposetup')
49
50 def exclude_hook(conduit):
51 - report_yum_status('exclude');
52 + report_yum_status('exclude')
53
54 def preresolve_hook(conduit):
55 - report_yum_status('preresolve');
56 + report_yum_status('preresolve')
57
58 def postresolve_hook(conduit):
59 - report_yum_status('postresolve');
60 + report_yum_status('postresolve')
61
62 def pretrans_hook(conduit):
63 - report_yum_status('pretrans');
64 + report_yum_status('pretrans')
65 ts = conduit.getTsInfo()
66 for tsmem in ts.getMembers():
67 print "smeserver trap pre-install: " + tsmem.name
68
69 def posttrans_hook(conduit):
70 - report_yum_status('posttrans');
71 + report_yum_status('posttrans')
72 os.spawnl(os.P_WAIT, initialize_database, initialize_database)
73 - os.spawnl(os.P_WAIT, navigation_conf, navigation_conf);
74 + os.spawnl(os.P_WAIT, navigation_conf, navigation_conf)
75 ts = conduit.getTsInfo()
76 for tsmem in ts.getMembers():
77 print "smeserver trap post-install: " + tsmem.name
78 - smeevent = 'yum-reconfigure-' + tsmem.name;
79 + smeevent = 'yum-reconfigure-' + tsmem.name
80 if os.path.isdir(events_path + '/' + smeevent):
81 print "smeservers signal-event: " + smeevent
82 os.spawnl(os.P_WAIT,

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