https://bugzilla.novell.com/show_bug.cgi?id=655402 https://bugzilla.novell.com/show_bug.cgi?id=655402#c0 Summary: "zypper ps" does not show any error messages even if lsof fails. Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Minor Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: belphegor@belbel.or.jp QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=401688) --> (http://bugzilla.novell.com/attachment.cgi?id=401688) A simple patch for handling error correctly User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ja; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12 "zypper ps" command depends on "lsof" command, but zypper does not show error if lsof command fails (for example, lsof package was not installed). Reproducible: Always Steps to Reproduce: 1. remove lsof package or rename /usr/bin/lsof -> /usr/bin/lsof.orig 2. run "zypper ps" Actual Results: zypper shows a message "No processes using deleted files found.", it tells as if no problems occured. Expected Results: Error message should be displayed instead of "No processes using deleted files found.". I think it is caused by zypper's error handling. try-catch clause handles error case in zypper/src/utils/misc.cc -> list_processes_using_deleted_files(), but it shows an error message only if verbosity is above normal. In addition, catch section does not abort (return) so that successful message is shown. An attachment is a brief patch which zypper becomes to handle error correctly. -- 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.