command-not-found still suggests git-core for deprecated command git-format-patch

Bug #318433 reported by Martin Olsson
2
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Jaunty by Martin Olsson

Bug Description

The command git-format-patch has been deprecated and it will not be in PATH for jaunty. It moved from being stored in /usr/bin/git-format-patch for intrepid to being stored in /usr/lib/git-core/git-format-patch in jaunty (this is just while phasing it out though).

This deprecation has already caused people to file bugs on git-core, like this one:
https://bugs.launchpad.net/ubuntu/+source/git-core/+bug/301905

----

Anyway, the current user experience for jaunty is that people type:
git-format-patch BLAH BLAH
and then the command-not-found package will say that the user must install the git-core package to make this command available. The user will then run "sudo apt-get install git-core" and then re-run "git-format-patch BLAH BLAH" only to find that command-not-found still says "git-core" must be installed. USABILITY FAIL.

Instead command-not-found should print a text that says:
git-format-patch command has been deprecated, use 'git format-patch' instead.

If there is no easy way to print such a deprecation message in command-not-found, then I suppose git-format-patch should be delisted in command-not-found (even though this is not an ideal solution).

Note that this bug applies to all the git-* command like git-shell, git-upload-archive etc

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package command-not-found - 0.2.31ubuntu2

---------------
command-not-found (0.2.31ubuntu2) jaunty; urgency=low

  * scan.data: fix git data (LP: #318433) by updating
    to the latest data

 -- Michael Vogt <email address hidden> Thu, 22 Jan 2009 08:53:25 +0100

Changed in command-not-found:
status: New → Fix Released
Revision history for this message
Martin Olsson (mnemo) wrote :

I got this fix through synaptic today and I've tested it. Running "git-format-patch" not says "command not found" as expected.

I'm confirming that this bug is fixed. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.