[Bug 523573] New: zypper -q does not suppress all unwanted output
http://bugzilla.novell.com/show_bug.cgi?id=523573 Summary: zypper -q does not suppress all unwanted output Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: jkupec@novell.com ReportedBy: jdsn@novell.com QAContact: dmacvicar@novell.com CC: zypp-maintainers@forge.provo.novell.com Found By: Development I wrote a cron script to check for updates via zypper. There should only be output if there are updates available in order to send an eMail (if there is no output cron will not send a mail). For refreshing this works fine: zypper -q --non-interactive ref --service But for listing updates this does not: zypper -q --non-interactive list-patches There is a heading "Patches" and two newlines as output even if there are no patches. Even if there were, I would have expected that the heading gets suppressed as well. Even filtering does not solve the problem: zypper -q --non-interactive list-patches | grep -v "^Patches$" | grep -v "^\s*$" The newlines contian some control sequences that pass the filter. Please make sure that if "-q" is added to zypper that nothing is printed if the result is empty, thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=523573
User jdsn@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523573#c1
--- Comment #1 from J. Daniel Schmidt
http://bugzilla.novell.com/show_bug.cgi?id=523573
User jkupec@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523573#c2
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=523573
User jdsn@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=523573#c3
--- Comment #3 from J. Daniel Schmidt
http://bugzilla.novell.com/show_bug.cgi?id=523573
http://bugzilla.novell.com/show_bug.cgi?id=523573#c4
Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=523573
http://bugzilla.novell.com/show_bug.cgi?id=523573#c5
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com