/[smeserver]/rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz10846.templates.patch
ViewVC logotype

Annotation of /rpms/smeserver-yum/sme10/smeserver-yum-2.6.0.bz10846.templates.patch

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


Revision 1.1 - (hide annotations) (download)
Fri Jan 31 03:08:38 2020 UTC (4 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-yum-2_6_0-31_el7_sme
* Thu Jan 30 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-31.sme
- avoid missing template error after removal of a rpm [SME: 10846]

1 jpp 1.1 diff -Nur smeserver-yum-2.6.0.old/root/usr/lib/yum-plugins/smeserver.py smeserver-yum-2.6.0/root/usr/lib/yum-plugins/smeserver.py
2     --- smeserver-yum-2.6.0.old/root/usr/lib/yum-plugins/smeserver.py 2020-01-30 22:04:45.015000000 -0500
3     +++ smeserver-yum-2.6.0/root/usr/lib/yum-plugins/smeserver.py 2020-01-30 22:06:15.524000000 -0500
4     @@ -288,7 +288,8 @@
5     print "Expanding templates"
6     for ktemplates in templateslist:
7     #print ktemplates
8     - if os.path.isfile(ktemplates):
9     + mytemplatedir = '/etc/e-smith/templates/' + ktemplates
10     + if os.path.exists(mytemplatedir):
11     os.spawnl(os.P_WAIT, expand_template, expand_template, ktemplates)
12    
13     if len(serviceslist)>0:

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