Kaydet (Commit) dc21f557 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Son degisimler.

üst 26799dff
......@@ -171,7 +171,7 @@ class CLI(inary.ui.UI):
while True:
tty.tcflush(sys.stdin.fileno(), 0)
prompt = msg + inary.util.colorize(_(' (yes/no)'), 'red')
s = input(prompt.encode('utf-8'))
s = input(prompt)
if yes_expr.search(s):
return True
......
......@@ -19,6 +19,7 @@ _ = __trans.gettext
import inary.cli.command as command
import inary.context as ctx
import inary.db
import sys
class ListInstalled(command.Command, metaclass=command.autocommand):
__doc__ = _("""Print the list of all installed packages
......@@ -74,7 +75,7 @@ Usage: list-installed
if self.options.install_info:
ctx.ui.info(_('Package Name |St| Version| Rel.| Distro| Date'))
sys.stdout.write('===========================================================================')
sys.stdout.write('===========================================================================\n')
for pkg in installed:
package = self.installdb.get_package(pkg)
inst_info = self.installdb.get_info(pkg)
......
......@@ -56,4 +56,4 @@ Gives a brief list of sources published in the repositories.
#if p in installed_list:
# p = util.colorize(p, 'cyan')
p = p + ' ' * max(0, 15 - lenp)
ctx.ui.info('{0} - {1}'.format(sf.source.name, sf.source.summary))
ctx.ui.info('{0} - {1}'.format(sf.source.name, str(sf.source.summary)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment