Bug 533663

Summary: pk-command-not-found repeats "Command not found." after installation
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: PackageKitAssignee: Richard Hughes <richard>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mclasen, mschmidt, richard, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-09 13:47:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2009-11-08 07:54:33 UTC
Description of problem:
pk-command-not-found outputs "Command not found. ... [N/y]"
again after installing a missing command.

Version-Release number of selected component (if applicable):
PackageKit-command-not-found-0.5.4-0.1.20091029git.fc12.i686

How reproducible:
every time

Steps to Reproduce:
1. try to run uninstalled program (eg darcs)
2. say y to pk-command-not-found prompt
3. say y to confirm installation
4. wait for installation to complete

Actual results:
[jens@192-168-1-2 ~]$ darcs
Command not found. Install package 'darcs' to provide command 'darcs'? [N/y] 
 * Installing packages.. 
 * Getting information.. 
 * Waiting for authentication.. 
 * Running.. 
 * Resolving dependencies.. 
 * Downloading packages.. 
 * Testing changes.. 
 * Installing packages.. 
 * Scanning applications.. Command not found. [jens@192-168-1-2 ~]$ Install package 'darcs' to provide command 'darcs'? [N/y] 

Expected results:
[jens@192-168-1-2 ~]$ darcs
Command not found. Install package 'darcs' to provide command 'darcs'? [N/y] 
 * Installing packages.. 
 * Getting information.. 
 * Waiting for authentication.. 
 * Running.. 
 * Resolving dependencies.. 
 * Downloading packages.. 
 * Testing changes.. 
 * Installing packages.. 
 * Scanning applications..
[jens@192-168-1-2 ~]$ 

Additional info:
I wonder if this is possibly related to bug 533554.

Comment 1 Matthias Clasen 2009-11-09 13:35:43 UTC
This is fixed for me with PackageKit-0.5.4-0.2.20091029git.fc12

Comment 2 Michal Schmidt 2009-11-09 13:47:56 UTC
Richard said in https://bugzilla.redhat.com/show_bug.cgi?id=533554#c6 :
> I've found the bug, in that cnf tries to
> re-exec _itself_ after successful installation, when it should be trying to
> re-exec the program that it just installed.

Re-execing command-not-found explains the repeated "Command not found. ..." message. Closing as a duplicate.

*** This bug has been marked as a duplicate of bug 533554 ***