f15beta wierdness

James Laska jlaska at redhat.com
Fri Apr 29 15:47:12 UTC 2011


On Fri, 2011-04-29 at 11:28 -0400, Neal Becker wrote:
> mkinitrd --help
> Usage:
>   pk-command-not-found [OPTION...]
> 
> PackageKit Command Not Found
> 
> Help Options:
>   -h, --help       Show help options

That is PackageKit implementing the bash command_not_found_handle.  For
details, take a look at ...

        # rpm -qf /etc/profile.d/PackageKit.sh 
        PackageKit-command-not-found-0.6.13-1.fc15.x86_64

Using the bash command_not_found_handle, PackageKit attempts to find a
package that provides that missing command.  In your case, PackageKit.sh
is calling ...

        /usr/libexec/pk-command-not-found mkinitrd --help

The --help you provided on the initial command-line, is interpreted by
pk-command-not-found ... so you see ...

        /usr/libexec/pk-command-not-found --help
        Usage:
          pk-command-not-found [OPTION...]
        
        PackageKit Command Not Found
        
        Help Options:
          -h, --help       Show help options

Unless this is intended, I think it's worth a bug report against
PackageKit-command-not-found so it strips off any options, and only uses
the $1 provided (not the entire arg string $@).

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/test/attachments/20110429/6654285b/attachment.bin 


More information about the test mailing list