[Bug 798500] New: Zypper install outputs large amount of spaces when terminal is not attached
https://bugzilla.novell.com/show_bug.cgi?id=798500 https://bugzilla.novell.com/show_bug.cgi?id=798500#c0 Summary: Zypper install outputs large amount of spaces when terminal is not attached Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: nvizovitin@parallels.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0 If 'zypper -n install' output is redirected (e.g. through a pipe), then there are errors in output format. There are large gaps consisting of large number of spaces (a bit more than an entire screen) just after "Retrieving package" words. This is very annoying, since if zypper output is redirected to a log file, then logs will be messed up. Reproducible: Always Steps to Reproduce: 1. Select a package for testing, e.g. strace. 2. Ensure the package is not installed: # zypper -n remove strace 3. Install the package, while redirecting zypper output: # zypper -n install strace | cat Actual Results: A lot of useless spaces in lines that start with "Retrieving package": # zypper -n install strace | cat Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: strace 1 new package to install. Overall download size: 120.3 KiB. After the operation, additional 455.0 KiB will be used. Continue? [y/n/?] (y): y Retrieving package strace-4.7-3.1.2.x86_64 <lots of empty lines skipped> (1/1), 120.3 KiB (455.0 KiB unpacked) Retrieving: strace-4.7-3.1.2.x86_64.rpm [.done] Installing: strace-4.7-3.1.2 [......done] Expected Results: Concise tidy output like: # zypper -n install strace | cat Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: strace 1 new package to install. Overall download size: 120.3 KiB. After the operation, additional 455.0 KiB will be used. Continue? [y/n/?] (y): y Retrieving package strace-4.7-3.1.2.x86_64 (1/1), 120.3 KiB (455.0 KiB unpacked) Retrieving: strace-4.7-3.1.2.x86_64.rpm [.done] Installing: strace-4.7-3.1.2 [......done] Looks like this happens regardless of the architecture. Looks like this happens only on lines starting with "Retrieving package " - the ones that use right-hand alignment for parts of a string. openSUSE 12.1 didn't have such bug, IIRC. Workaround: Use a filter like: # zypper -n install strace | grep --line-buffered -v '^Retrieving package .* unpacked)$' Environment: # cat /etc/issue Welcome to openSUSE 12.2 "Mantis" - Kernel \r (\l). # uname -a Linux a10-52-148-225 3.4.6-042stab061.2 #1 SMP Fri Aug 24 09:07:21 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux # zypper --version zypper 1.7.3 # rpm -qf `which zypper` zypper-1.7.3-1.2.2.x86_64 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=798500
https://bugzilla.novell.com/show_bug.cgi?id=798500#c1
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com