/[smeserver]/rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-fixremove.patch
ViewVC logotype

Annotation of /rpms/smeserver-yum/sme8/smeserver-yum-2.2.0-fixremove.patch

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


Revision 1.1 - (hide annotations) (download)
Thu Nov 5 18:43:13 2009 UTC (14 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-yum-2_2_0-14_el5_sme, smeserver-yum-2_2_0-24_el5_sme, smeserver-yum-2_2_0-22_el5_sme, smeserver-yum-2_2_0-16_el5_sme, smeserver-yum-2_2_0-26_el5_sme, smeserver-yum-2_2_0-18_el5_sme, smeserver-yum-2_2_0-12_el5_sme, smeserver-yum-2_2_0-17_el5_sme, smeserver-yum-2_2_0-20_el5_sme, smeserver-yum-2_2_0-23_el5_sme, smeserver-yum-2_2_0-13_el5_sme, smeserver-yum-2_2_0-15_el5_sme, smeserver-yum-2_2_0-19_el5_sme, smeserver-yum-2_2_0-21_el5_sme, smeserver-yum-2_2_0-25_el5_sme, HEAD
Fix remove yum status file

1 slords 1.1 diff -up smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py.fixremove smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py
2     diff -up smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py.fixremove smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py
3     diff -up smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py.fixremove smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py
4     --- smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py.fixremove 2009-11-05 11:39:13.000000000 -0700
5     +++ smeserver-yum-2.0.0/root/usr/lib/yum-plugins/smeserver.py 2009-11-05 11:39:53.000000000 -0700
6     @@ -16,18 +16,13 @@ config_set = '/sbin/e-smith/config'
7     status_file = '/var/run/yum.status'
8    
9     smechange = False
10     +ourfile = False
11    
12     def report_yum_status(status):
13     fileHandle = open(status_file, 'w')
14     fileHandle.write(status)
15     fileHandle.close()
16    
17     -def config_hook(conduit):
18     - report_yum_status('config')
19     -
20     -def init_hook(conduit):
21     - report_yum_status('init')
22     -
23     def predownload_hook(conduit):
24     report_yum_status('predownload')
25    
26     @@ -35,6 +30,8 @@ def postdownload_hook(conduit):
27     report_yum_status('postdownload')
28    
29     def prereposetup_hook(conduit):
30     + global ourfile
31     + ourfile = True
32     report_yum_status('prereposetup')
33    
34     def postreposetup_hook(conduit):
35     @@ -52,15 +49,12 @@ def postresolve_hook(conduit):
36     def pretrans_hook(conduit):
37     report_yum_status('pretrans')
38     ts = conduit.getTsInfo()
39     - for tsmem in ts.getMembers():
40     - print "smeserver trap pre-install: " + tsmem.name
41    
42     def posttrans_hook(conduit):
43     global smechange
44     report_yum_status('posttrans')
45     ts = conduit.getTsInfo()
46     for tsmem in ts.getMembers():
47     - print "smeserver trap post-install: " + tsmem.name
48     smeevent = 'yum-reconfigure-' + tsmem.name
49     if os.path.isdir(events_path + '/' + smeevent):
50     print "smeservers signal-event: " + smeevent
51     @@ -77,7 +71,7 @@ def posttrans_hook(conduit):
52     os.spawnl(os.P_WAIT, navigation_conf, navigation_conf)
53    
54     def close_hook(conduit):
55     - if os.path.isfile('/var/run/yum.status'):
56     + if ourfile and os.path.isfile('/var/run/yum.status'):
57     os.unlink('/var/run/yum.status')
58    
59     if smechange:

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