bash-completion-Bugs item #313638 was changed at 2013-08-15 23:58 by Igor Murzov You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313638&group_id=100114
Status: Closed Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: DBTS 673235: aptitude safe-upgrade accepts package names Distribution: Debian Originally reported in: Debian BTS Milestone: 2.0 Status: Fix Committed Original bug number: 673235 Initial Comment: Hi, aptitude safe-upgrade accepts package names as parameters, the following patch enable bash completion for it : --- a/completions/aptitude 2012-05-17 09:33:19.449845569 +0200 +++ b/completions/aptitude 2012-05-17 09:39:49.229833983 +0200 @@ -28,7 +28,7 @@ local special i for (( i=0; i < ${#words[@]}-1; i++ )); do - if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag|versions) ]]; then + if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full|safe)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag|versions) ]]; then special=${words[i]} fi #exclude some mutually exclusive options @@ -40,7 +40,7 @@ case $special in install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade| \ download|show|changelog|why|why-not|build-dep|add-user-tag| \ - remove-user-tag|versions) + remove-user-tag|versions|safe-upgrade) COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) return 0 ;; @@ -58,7 +58,7 @@ case $prev in # don't complete anything if these options are found - autoclean|clean|forget-new|search|safe-upgrade|upgrade|update|keep-all) + autoclean|clean|forget-new|search|upgrade|update|keep-all) return 0 ;; -S) Regards, Nicolas ---------------------------------------------------------------------- >Comment By: Igor Murzov (garik-guest) Date: 2013-08-15 23:58 Message: Thank you for the patch. ---------------------------------------------------------------------- Comment By: Igor Murzov (garik-guest) Date: 2013-08-15 23:55 Message: In. See commit: http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commit;h=e91a45889f3fb8b4007949797fc3f07af24bb52f ---------------------------------------------------------------------- You can respond by visiting: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313638&group_id=100114 _______________________________________________ Bash-completion-devel mailing list Bash-completion-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel