[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 <jdsn@novell.com> 2009-07-20 11:23:13 MDT --- Just as a note: here are some (ugly) workarounds: This works - but the command is ugly: zypper --non-interactive list-updates --all -t patch | grep -v "Loading repository data..." | grep -v "Reading installed packages..." | grep -v "Nothing to do." | grep -v "No updates found" | grep -v "^Patches$" | grep -v "^\s*$" This command looks nice - but the output is ugly: zypper -q --non-interactive up -D -- 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 jkupec@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=523573#c2 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED --- Comment #2 from Ján Kupec <jkupec@novell.com> 2009-07-21 03:03:11 MDT --- Sure, i'll fix this. -- 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#c3 --- Comment #3 from J. Daniel Schmidt <jdsn@novell.com> 2009-09-17 06:25:55 MDT --- Is this already fixed in factory/11.2? If yes, I'd say lets move this bug to 11.2 and close it as fixed. -- 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 http://bugzilla.novell.com/show_bug.cgi?id=523573#c4 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Component|libzypp |libzypp Version|Final |unspecified Resolution| |FIXED Product|openSUSE 11.1 |openSUSE 11.3 Target Milestone|--- |Factory --- Comment #4 from Ján Kupec <jkupec@novell.com> 2010-02-23 17:04:42 UTC --- (The lu/lp command needs some serious rewrite...) One newline still leaks there. Fixed now in git, will be in zypper 1.2.20. -- 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 http://bugzilla.novell.com/show_bug.cgi?id=523573#c5 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.2:32913 --- Comment #5 from Swamp Workflow Management <swamp@suse.com> 2010-05-06 15:04:35 UTC --- Update released for: PackageKit, PackageKit-debuginfo, PackageKit-debugsource, PackageKit-devel, PackageKit-doc, PackageKit-lang, libpackagekit-glib12, libpackagekit-glib12-debuginfo, libpackagekit-glib12-devel, libpackagekit-qt12, libpackagekit-qt12-debuginfo, libpackagekit-qt12-devel, libsatsolver, libsatsolver-debugsource, libsatsolver-demo, libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp, python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver, ruby-satsolver-debuginfo, ruby-zypp, ruck, satsolver-tools, satsolver-tools-debuginfo, yast2-ncurses, yast2-ncurses-debuginfo, yast2-ncurses-debugsource, yast2-ncurses-devel, yast2-ncurses-pkg, yast2-ncurses-pkg-debuginfo, yast2-ncurses-pkg-debugsource, yast2-qt-pkg, yast2-qt-pkg-debuginfo, yast2-qt-pkg-debugsource, zypp-testsuite-tools, zypper, zypper-debuginfo, zypper-debugsource Products: openSUSE 11.2 (debug, i586, x86_64) -- 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.
participants (1)
-
bugzilla_noreply@novell.com