Bug 266893

Summary: krpmview does not close after RPM install from konqueror with YAST2
Product: [openSUSE] openSUSE 10.2 Reporter: Ray Frye <floridafryes>
Component: KDEAssignee: Dirk Mueller <dmueller>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P1 - Urgent CC: dmueller
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 10.2   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 251044    
Bug Blocks:    

Description Ray Frye 2007-04-22 14:07:16 UTC
Installing RPM from folder in konqueror using "Install Package with YaST" button works after reboot.  Installing a second RPM the same way causes error message "Another process is accessing the package database.  Package management cannot be used now."

It is necessary to identify the process manually and kill it to allow further installs.  I narrowed the problem program down to krpmview.  Below is the terminal capture that remedies the problem.

sandbox:/home/rfrye # ps -ef | grep /opt/kde3/share/apps/krpmview/setup_temp_source
rfrye     4310  3980  0 09:40 pts/0    00:00:00 kdesu -n --nonewdcop -- /opt/kde3/share/apps/krpmview/setup_temp_source /home/rfrye/downloads/mplayer-codecs-20061022-1.i386.rpm
root      4324  4318  0 09:40 ?        00:00:00 /bin/bash /opt/kde3/share/apps/krpmview/setup_temp_source /home/rfrye/downloads/mplayer-codecs-20061022-1.i386.rpm
root      5220  5213  0 09:42 pts/5    00:00:00 grep /opt/kde3/share/apps/krpmview/setup_temp_source
sandbox:/home/rfrye # kill 4310
sandbox:/home/rfrye #
Comment 1 Dirk Mueller 2007-05-09 12:05:32 UTC
it is because zypper asks

"Do you want to trust key id bla ?" [y/n]

which hangs forever. 

Comment 2 Jan Kupec 2007-05-09 12:18:30 UTC
Dirk, just make sure zypper is called with --non-interactive option (or in an xterm), i'll handle the key import issue (bug 251044).
Comment 3 Dirk Mueller 2007-05-09 12:38:11 UTC
doesn't work: 

sudo /usr/bin/zypper  --non-interactive service-delete _krpmview_temporary
WARNING: global non-interactive mode is still under development, use with caution. This mode has been implemented and tested for install, remove, and update commands so far. In case of problems related to non-interactive mode, please file a bugreport following instructions at http://en.opensuse.org/Zypper#Troubleshooting
Do you want to trust key id A84EDAE89C800ACA SuSE Package Signing Key <build@suse.de> fingerprint:79C179B2E1C820C1890F9994A84EDAE89C800ACA ? [y/n]:

rpm -q zypper
zypper-0.7.1-8

I've added a </dev/null now, that seems to help :)
Comment 4 Jan Kupec 2007-05-09 12:56:00 UTC
I meant, it will work with --non-interactive _after_ fixing bug 251044 :O) I just mentioned the --non-interactive mode which is to be used in cases like this (zypper called in the background/from script).
Comment 5 Stephan Binner 2007-10-24 11:24:52 UTC
So this bug is fixed? Or who is responsible now?
Comment 6 Jan Kupec 2007-10-24 11:51:18 UTC
Yes, it should work now. Dirk, please check.
Comment 7 Dirk Mueller 2008-07-24 14:55:37 UTC
seems to work fine (--non-interactive is in the package).