[yum/f17] Add a fix of BZ 819229

Zdeněk Pavlas zpavlas at fedoraproject.org
Mon Jun 4 09:35:07 UTC 2012


commit fc5286db0faa2ae2950f4a542d4c7faaa33dde1e
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Mon Jun 4 11:05:33 2012 +0200

    Add a fix of BZ 819229

 BZ-809469-completion-helper.patch |   34 +++++++++++++++++++++-------------
 1 files changed, 21 insertions(+), 13 deletions(-)
---
diff --git a/BZ-809469-completion-helper.patch b/BZ-809469-completion-helper.patch
index d98652a..88f7939 100644
--- a/BZ-809469-completion-helper.patch
+++ b/BZ-809469-completion-helper.patch
@@ -1,16 +1,3 @@
-diff --git a/completion-helper.py b/completion-helper.py
-index 405ceab..71de058 100755
---- a/completion-helper.py
-+++ b/completion-helper.py
-@@ -69,6 +69,8 @@ def get_pattern(extcmds):
- 
- def main(args):
-     base = cli.YumBaseCli()
-+    # We want the default cachedir but commit 0f034091 does not.
-+    base.setCacheDir = lambda *x: True # monkeypatch
-     base.yum_cli_commands.clear()
-     base.registerCommand(GroupsCompletionCommand())
-     base.registerCommand(ListCompletionCommand())
 commit 6351d7bbb6957e7c739a674696fcc5d7d31ecb17
 Author: Zdeněk Pavlas <zpavlas at redhat.com>
 Date:   Wed Apr 4 13:36:36 2012 +0200
@@ -66,3 +53,24 @@ index 2e95ced..405ceab 100755
  
  if __name__ == "__main__":
      try:
+commit 36868c0f79fcce18d50ef8c3a599eaac976b3965
+Author: Zdeněk Pavlas <zpavlas at redhat.com>
+Date:   Wed May 9 09:57:32 2012 +0200
+
+    yum.bash: Don't search for packages like '-*'. BZ 819229.
+
+diff --git a/etc/yum.bash b/etc/yum.bash
+index 16b011a..b21c594 100644
+--- a/etc/yum.bash
++++ b/etc/yum.bash
+@@ -9,8 +9,8 @@ _yum_helper()
+ 
+ _yum_list()
+ {
+-    # Fail fast for things that look like paths.
+-    [[ $2 == */* || $2 == [.~]* ]] && return
++    # Fail fast for things that look like paths or options.
++    [[ $2 == */* || $2 == [.~-]* ]] && return
+     _yum_helper list "$@"
+ }
+ 


More information about the scm-commits mailing list