* 'installing' notification

* print a line about general help
* po update
This commit is contained in:
Eray Özkural
2005-11-12 21:50:37 +00:00
parent 15e1b2c436
commit 3c52f91839
4 changed files with 7 additions and 3 deletions
+1
View File
@@ -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()
+4 -1
View File
@@ -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'))
+1 -1
View File
@@ -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
View File
@@ -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."