[commits] r122 - selinux-site/trunk/SeLinux/Extensions
tim at mail.se.linux.org
tim at mail.se.linux.org
Tis Okt 30 22:45:31 CET 2007
Author: tim
Date: 2007-10-30 22:45:30 +0100 (Tue, 30 Oct 2007)
New Revision: 122
Modified:
selinux-site/trunk/SeLinux/Extensions/install.py
Log:
When installing 'SeLinux' every profile (selinux.policy, selinux.theme and others) are now automatically run. They can still be updated/installed seperately if wanted, but by updating/installing 'SeLinux' one updates/installs everything.
Modified: selinux-site/trunk/SeLinux/Extensions/install.py
===================================================================
--- selinux-site/trunk/SeLinux/Extensions/install.py 2007-10-30 21:43:26 UTC (rev 121)
+++ selinux-site/trunk/SeLinux/Extensions/install.py 2007-10-30 21:45:30 UTC (rev 122)
@@ -1,2 +1,9 @@
+from Products.GenericSetup.interfaces import ISetupTool
+from zope.component import getUtility
+
def install(self, reinstall=False):
- pass
+ portal_setup = getUtility(ISetupTool)
+ portal_setup.setImportContext('profile-selinux.theme:selinux')
+ portal_setup.runAllImportSteps(purge_old=False)
+ portal_setup.setImportContext('profile-selinux.policy:selinux')
+ portal_setup.runAllImportSteps(purge_old=False)
More information about the commits
mailing list