diff options
author | Martin Sivak <msivak@redhat.com> | 2008-06-30 14:08:05 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2008-06-30 14:08:05 +0200 |
commit | faf2cc5a133e915bd69b679a66907e14955cefa8 (patch) | |
tree | bd73143e82b1bd4b2ea3af383311772668151c21 /pyfirstaidkit/interpret.py | |
parent | 98e5fd8c027efb61070f3b255dc15a32d0dc758e (diff) | |
download | firstaidkit-faf2cc5a133e915bd69b679a66907e14955cefa8.tar.gz firstaidkit-faf2cc5a133e915bd69b679a66907e14955cefa8.tar.xz firstaidkit-faf2cc5a133e915bd69b679a66907e14955cefa8.zip |
Add the Info object and make it possible to override lock for single section
Diffstat (limited to 'pyfirstaidkit/interpret.py')
-rw-r--r-- | pyfirstaidkit/interpret.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py index c81cdaf..e140e4e 100644 --- a/pyfirstaidkit/interpret.py +++ b/pyfirstaidkit/interpret.py @@ -16,6 +16,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import os +import sys from plugins import PluginSystem from reporting import Reports, TASKER, PLUGINSYSTEM import logging @@ -23,6 +24,7 @@ import copy from errors import * from utils import FileBackupStore from dependency import Dependencies +from configuration import Info Logger=logging.getLogger("firstaidkit") @@ -157,5 +159,10 @@ class Tasker: self._reporting.stop(level = TASKER, origin = self) return False + if self._config.operation.printinfo: + print "--- Info section ---" + Info.write(sys.stdout) + print "--------------------" + self._reporting.stop(level = TASKER, origin = self) return True |