* 'installing' notification
* print a line about general help * po update
This commit is contained in:
@@ -77,6 +77,7 @@ class Install(AtomicOperation):
|
||||
ctx.ui.status(_('Installing %s, version %s, release %s, build %s') %
|
||||
(self.pkginfo.name, self.pkginfo.version,
|
||||
self.pkginfo.release, self.pkginfo.build))
|
||||
ctx.ui.notify(pisi.ui.installing, package = self.pkginfo, files = self.files)
|
||||
self.ask_reinstall = ask_reinstall
|
||||
self.check_requirements()
|
||||
self.check_relations()
|
||||
|
||||
@@ -131,4 +131,7 @@ class CLI(UI):
|
||||
msg = _('Removed %s') % keywords['package'].name
|
||||
elif event == ui.upgraded:
|
||||
msg = _('Upgraded %s') % keywords['package'].name
|
||||
self.output(colorize(msg + '\n', 'cyan'))
|
||||
else:
|
||||
msg = None
|
||||
if msg:
|
||||
self.output(colorize(msg + '\n', 'cyan'))
|
||||
|
||||
@@ -50,7 +50,7 @@ class Command(object):
|
||||
return Command.cmd_dict[cmd]()
|
||||
|
||||
if fail:
|
||||
raise Error(_("Unrecognized command: ") + cmd)
|
||||
raise Error(_("Unrecognized command: %s") % cmd)
|
||||
else:
|
||||
return None
|
||||
get_command = staticmethod(get_command)
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import sys
|
||||
import pisi
|
||||
import pisi.context as ctx
|
||||
|
||||
installed, upgraded, removed = range(3)
|
||||
installed, upgraded, removed, installing, removing = range(5)
|
||||
|
||||
class UI(object):
|
||||
"Abstract class for UI operations, derive from this."
|
||||
|
||||
Reference in New Issue
Block a user