Mailinglist Archive: opensuse-bugs (13478 mails)

< Previous Next >
[Bug 336333] New: zypper: suppress escape sequence if tty is missing
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 24 Oct 2007 08:29:34 -0600 (MDT)
  • Message-id: <bug-336333-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=336333

Summary: zypper: suppress escape sequence if tty is missing
Product: openSUSE 10.3
Version: Final
Platform: Other
OS/Version: openSUSE 10.3
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: libzypp
AssignedTo: jkupec@xxxxxxxxxx
ReportedBy: kssingvo@xxxxxxxxxx
QAContact: dmacvicar@xxxxxxxxxx
Found By: Development


I'm using zypper to do regular check for updates on my machine and in special
cases (= not every time) let zypper install them. I do this via cronjob and log
the output into file.

This file grows very large, as there are a lot of escape sequences in the
output: the spinning wheel, or the percent gauge.

I'm using the "-n" option and still it's far too much (150kB last night).
The commandline options are:
- For checking new updates:
/usr/bin/zypper -n -t list-updates 2>/dev/null >$tmpfile
- In case I allow doing the update (which I logged):
/usr/bin/zypper -n -t update >$tmpfile 2>&1

My enhancement request is this:
if there is no $TTY set (like in cronjob), then reduce the output of zypper to
minium lines and print the result only.

Maybe the terse option should be more restrictive?


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >