output all install log even stdout not a tty
authorGui Chen <gui.chen@intel.com>
Wed, 30 May 2012 06:07:06 +0000 (14:07 +0800)
committerGui Chen <gui.chen@intel.com>
Wed, 30 May 2012 06:07:06 +0000 (14:07 +0800)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/utils/rpmmisc.py

index fd25fe8..4e49715 100644 (file)
@@ -216,7 +216,7 @@ class RPMInstallCallback:
                         pkgname = m.group(1)
                     else:
                         pkgname = os.path.basename(rpmloc)
-                if self.output and (sys.stdout.isatty() or self.total_installed == self.total_actions):
+                if self.output:
                     fmt = self._makefmt(percent)
                     msg = fmt % (self.headmsg, pkgname)
                     if msg != self.lastmsg: