| Summary: | urpme tab completion fails: missing the bash_completion function, _rpm_installed_packages() | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Richard Neill <mageia> |
| Component: | RPM Packages | Assignee: | Guillaume Rousse <guillomovitch> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | urpmi | CVE: | |
| Status comment: | |||
|
Description
Richard Neill
2012-03-14 01:19:34 CET
Manuel Hiebel
2012-03-14 01:28:47 CET
Assignee:
bugsquad =>
guillomovitch Try uninstalling packagekit-command-not-found CC:
(none) =>
davidwhodgins (In reply to comment #1) > Try uninstalling packagekit-command-not-found I didn't have that installed anyway. Installing it makes no difference. The problem is that the function _rpm_installed_packages() is never defined in /etc/bash_completion.d/* This function is called in several places, but not defined. It looks as though there should be a file: /etc/bash_completion.d/rpm but this does not exist, nor does urpmf locate one. This function is defined in /usr/share/bash-completion/completions/rpm, which is dynamically loaded the first time rpm completion is attempted. Just try 'rpm -<TAB>', then 'urpme <TAB>'. We need to force rpm completion loading from another completion here. Status:
NEW =>
ASSIGNED That's rather clever (and yes, it does work). I'm curious: why are some completions in /usr/share/bash-completion/completions/ while others are in /etc/bash_completion.d . This would probably suggest moving urpmi's completion function while we are at it. upstream project bash-completion now install all its completion files under /usr/share, and ensure they are automatically loaded when needed. Individual projects still install under /etc/bash_completion.d, where they are automatically sourced each time a new shell is created. I'm not sure just changing files location is enough, I think some adaptation is also needed. I just commited a fix in svn, I'm waiting for urpmi maintainer input before issuing a new release. Fix released in urpmi 6.48. Status:
ASSIGNED =>
RESOLVED |