Bug 703598

Summary: zypper ps checks if PackageKit is in use
Product: [openSUSE] openSUSE 11.4 Reporter: Christian Boltz <suse-beta>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: gp
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Boltz 2011-07-02 23:24:07 UTC
# zypper ps
PackageKit is blocking zypper. This happens if you have an updater applet or other software management application using PackageKit running.
Tell PackageKit to quit? [yes/no] (no): 


AFAIK zypper ps is based on "lsof" - I see no reason (except annoying the user ;-) why it should kill any software using PackageKit before reading the lsof output. lsof is totally independent from PackageKit, RPM, libzypp, zypper etc.

Please remove the check for PackageKit usage in zypper ps unless there is a good reason to keep it ;-)
Comment 1 Michael Andres 2011-07-04 07:18:48 UTC
Looks like zyypper always tries to acquire a zypp lock, which indeed isn't necessary for a 'ps'.

(As workaround you could call zypp-CheckAccessDeleted. It may list more procs than zypper as it scans for all open files in all directories, not just for libs and binaries.)
Comment 2 Michael Andres 2012-03-30 12:48:45 UTC
fixed for zypper-1.7.1