You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
623 B

commit 0954b42554b7f78809d9050886b419a99e28d289
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
Date: Tue May 13 15:50:52 2014 +0200
Make --setopt handle spaces properly. BZ 1094373
diff --git a/cli.py b/cli.py
index c1ef023..aa73278 100755
--- a/cli.py
+++ b/cli.py
@@ -193,7 +193,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
if len(vals) < 2:
bad_setopt_ne.append(item)
continue
- k,v = vals
+ k, v = [i.strip() for i in vals]
period = k.rfind('.')
if period != -1:
repo = k[:period]