Bug 27246

Summary: command-not-found won't provide package if command is "similar" to installed command
Product: PackageKit Reporter: Edward Rudd <urkle>
Component: GeneralAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Edward Rudd 2010-03-22 10:00:08 UTC
Description of problem:
I am trying to run "kompare" (the KDE compare/diff GUI) but
pk-command-not-found suggests I should run "compare" instead.

Version-Release number of selected component (if applicable):
PackageKit-0.5.5-1.fc12@x86_64

How reproducible:
with similar names, every time.
ie.
kompare vs compare
htop vs top

Steps to Reproduce:
1. open a shell and have PackageKit-command-not-found installed
2. run a "similar" but uninstalled known command to something installed (ie..
htop)

Actual results:
Command not found. Similar command is: 'top'

Expected results:
asking me to install htop

Discussion of bug filed with Fedora Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=554801
Comment 1 Richard Hughes 2010-03-23 06:43:01 UTC
commit 6c32d907318f81ba7e4b0e477ebe3de2d7f6c906
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Mar 23 13:41:23 2010 +0000

    CNF: add a boolean configure variable 'SimilarNameSearch' to allow skipping swizzle testing. Fixes #27246

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.