[PATCH] Prevent yum messages from showing on tty
Jesse Keating
jkeating at redhat.com
Tue Aug 14 17:47:46 UTC 2012
This is a hammer. A more subtle fix could be done to tie into yum's
logging infrastructure and do something sensible with it.
---
pyanaconda/packaging/yumpayload.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index f6f940a..7695bad 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -182,6 +182,12 @@ class YumPayload(PackagePayload):
# set this now to the best default we've got ; we'll update it if/when
# we get a base repo set up
self._yum.preconf.releasever = self._getReleaseVersion(None)
+ # Hammer the yum logs to nothing, we log around yum. This is
+ # to prevent stuff from leaking to the screen. Need a less hammer
+ # approach to this so that we could have rich yum logs but clean
+ # screens
+ self._yum.preconf.debuglevel = 0
+ self._yum.preconf.errorlevel = 0
self.txID = None
--
1.7.11.2
More information about the anaconda-patches
mailing list