[yum-commits] etc/yum.bash

Ville Skyttä scop at osuosl.org
Thu Apr 19 15:24:48 UTC 2012


 etc/yum.bash |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

New commits:
commit de5e4e99372d248036acba35aa665a2de97b1a24
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Apr 19 18:23:38 2012 +0300

    Add load-transaction completion.

diff --git a/etc/yum.bash b/etc/yum.bash
index 5945c6f..16b011a 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -157,8 +157,8 @@ _yum()
 
     # Commands offered as completions
     local cmds=( check check-update clean deplist distro-sync downgrade
-        groups help history info install list makecache provides reinstall
-        remove repolist search shell update upgrade version )
+        groups help history info install list load-transaction makecache provides
+        reinstall remove repolist search shell update upgrade version )
 
     local i c cmd subcmd
     for (( i=1; i < ${#words[@]}-1; i++ )) ; do
@@ -166,7 +166,7 @@ _yum()
         # Recognize additional commands and aliases
         for c in ${cmds[@]} check-rpmdb distribution-synchronization erase \
             group groupinfo groupinstall grouplist groupremove groupupdate \
-            grouperase install-na localinstall localupdate whatprovides ; do
+            grouperase install-na load-ts localinstall localupdate whatprovides ; do
             [[ ${words[i]} == $c ]] && cmd=$c && break
         done
     done
@@ -304,6 +304,11 @@ _yum()
             return 0
             ;;
 
+        load-transaction|load-ts)
+            COMPREPLY=( $( compgen -f -o plusdirs -X '!*.yumtx' -- "$cur" ) )
+            return 0
+            ;;
+
         localinstall|localupdate)
             _yum_binrpmfiles "$cur"
             return 0


More information about the Yum-commits mailing list