[yum-commits] 3 commits - yum-debug-dump.py yum-utils.bash

Ville Skyttä scop at osuosl.org
Sun Apr 24 20:28:30 UTC 2011


 yum-debug-dump.py |    2 +-
 yum-utils.bash    |   20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

New commits:
commit 7f97d388d780b5d0dcc1117dc1f2cfb7f64354c8
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Apr 24 23:27:37 2011 +0300

    Add yum-debug-dump completion.

diff --git a/yum-utils.bash b/yum-utils.bash
index 509ec3a..e40caaa 100644
--- a/yum-utils.bash
+++ b/yum-utils.bash
@@ -341,6 +341,26 @@ _yu_debuginfo_install()
 } &&
 complete -F _yu_debuginfo_install debuginfo-install debuginfo-install.py
 
+# yum-debug-dump
+_yu_debug_dump()
+{
+    COMPREPLY=()
+
+    case $3 in
+        -h|--help)
+            return 0
+            ;;
+    esac
+
+    if [[ $2 == -* ]] ; then
+        COMPREPLY=( $( compgen -W '--help --norepos' -- "$2" ) )
+        return 0
+    fi
+
+    COMPREPLY=( $( compgen -f -o plusdirs -- "$cur" ) )
+} &&
+complete -F _yu_debug_dump -o filenames yum-debug-dump yum-debug-dump.py
+
 # Local variables:
 # mode: shell-script
 # sh-basic-offset: 4
commit 7963c6994683096d6c8e56026a1e94ca0aaf0daa
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Apr 24 23:26:55 2011 +0300

    Mention filename arg in yum-debug-dump usage message.

diff --git a/yum-debug-dump.py b/yum-debug-dump.py
index 019cc6f..4653f3c 100755
--- a/yum-debug-dump.py
+++ b/yum-debug-dump.py
@@ -40,7 +40,7 @@ class YumDebugDump(yum.YumBase):
 
     def parse_args(self):
         parser = OptionParser()
-        parser.set_usage("yum-debug-dump [options]")
+        parser.set_usage("yum-debug-dump [options] [filename]")
         parser.add_option("--norepos", action="store_true", default=False,
            help="do not attempt to dump the repository contents")
         self.opts, self.args = parser.parse_args()
commit 9aca39b00365c98794bfcf82fb53c077bbbacf8f
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Apr 24 23:24:31 2011 +0300

    Make yum-debug-dump.py executable for running in-place.

diff --git a/yum-debug-dump.py b/yum-debug-dump.py
old mode 100644
new mode 100755


More information about the Yum-commits mailing list