[yum-git] cli.py output.py
James Antill
james at linux.duke.edu
Fri Apr 11 21:15:32 UTC 2008
cli.py | 3 +++
output.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 3ef1cadbdc56950979c8e8034da58f01cb9c2c9d
Author: James Antill <james at and.org>
Date: Fri Apr 11 17:13:09 2008 -0400
Allow searching for unicode, i.e.: ®
diff --git a/cli.py b/cli.py
index f4c044f..ae66555 100644
--- a/cli.py
+++ b/cli.py
@@ -45,6 +45,8 @@ from yum.rpmtrans import RPMTransaction
import signal
import yumcommands
+from yum.misc import to_unicode
+
def sigquit(signum, frame):
""" SIGQUIT handler for the yum cli. """
print >> sys.stderr, "Quit signal sent - exiting immediately"
@@ -682,6 +684,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
searchlist = ['name', 'summary', 'description', 'url']
dups = self.conf.showdupesfromrepos
+ args = map(to_unicode, args)
matching = self.searchGenerator(searchlist, args,
showdups=dups, keys=True)
diff --git a/output.py b/output.py
index 4d835a8..1e3483f 100644
--- a/output.py
+++ b/output.py
@@ -266,7 +266,7 @@ class YumOutput:
return ret
def fmtSection(self, name, fill='='):
- name = str(name)
+ name = to_str(name)
cols = self.term.columns - 2
name_len = len(name)
if name_len >= (cols - 4):
More information about the Yum-cvs-commits
mailing list