CLI içinde bu "+" kullanımlarının tamamı yanlış, Gürer daha önce neden yanlış olduğunu ve bu durumun utf8 yerelini nasıl etkilediğini uzun uzun anlatmıştı.
Sadece bir tanesini düzeltiyorum ve gerisini bırakıyorum
pardus ~ # pisi lu -lvd
DEBUG: PISI API initialized
Sistem Hatası: Program Sonlandırıldı.
exceptions.TypeError: unsupported operand type(s) for +: 'Package' and 'str'
Genel yardım için lütfen 'pisi help' komutunu kullanınız.
Geri-iz:
File "/usr/bin/pisi", line 76, in ?
cli.run_command()
File "/usr/lib/pardus/pisi/cli/pisicli.py", line 108, in run_command
self.command.run()
File "/usr/lib/pardus/pisi/cli/commands.py", line 1059, in run
ctx.ui.info(package)
File "/usr/lib/pardus/pisi/cli/__init__.py", line 73, in info
self.output(msg + msgend, verbose=verbose)
This commit is contained in:
@@ -70,7 +70,7 @@ class CLI(UI):
|
||||
msgend = ''
|
||||
else:
|
||||
msgend = '\n'
|
||||
self.output(msg + msgend, verbose=verbose)
|
||||
self.output('%s %s' % (msg, msgend), verbose=verbose)
|
||||
|
||||
def warning(self, msg, verbose = False):
|
||||
if ctx.get_option('no_color'):
|
||||
|
||||
Reference in New Issue
Block a user