* implement two new notifications for configuration
This commit is contained in:
@@ -87,7 +87,9 @@ class Install(AtomicOperation):
|
|||||||
if ctx.comar:
|
if ctx.comar:
|
||||||
import pisi.comariface as comariface
|
import pisi.comariface as comariface
|
||||||
self.register_comar_scripts()
|
self.register_comar_scripts()
|
||||||
|
ctx.ui.notify(pisi.ui.configuring, package = self.pkginfo, files = self.files)
|
||||||
comariface.run_postinstall(self.pkginfo.name)
|
comariface.run_postinstall(self.pkginfo.name)
|
||||||
|
ctx.ui.notify(pisi.ui.configured, package = self.pkginfo, files = self.files)
|
||||||
self.update_databases()
|
self.update_databases()
|
||||||
self.update_environment()
|
self.update_environment()
|
||||||
ctx.ui.status()
|
ctx.ui.status()
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ class CLI(UI):
|
|||||||
msg = _('Removed %s') % keywords['package'].name
|
msg = _('Removed %s') % keywords['package'].name
|
||||||
elif event == ui.upgraded:
|
elif event == ui.upgraded:
|
||||||
msg = _('Upgraded %s') % keywords['package'].name
|
msg = _('Upgraded %s') % keywords['package'].name
|
||||||
|
if event == ui.configured:
|
||||||
|
msg = _('Configured %s') % keywords['package'].name
|
||||||
else:
|
else:
|
||||||
msg = None
|
msg = None
|
||||||
if msg:
|
if msg:
|
||||||
|
|||||||
+2
-1
@@ -19,7 +19,8 @@ import sys
|
|||||||
import pisi
|
import pisi
|
||||||
import pisi.context as ctx
|
import pisi.context as ctx
|
||||||
|
|
||||||
installed, upgraded, removed, installing, removing = range(5)
|
(installed, upgraded, removed, installing, removing,
|
||||||
|
configuring, configured) = range(7)
|
||||||
|
|
||||||
class UI(object):
|
class UI(object):
|
||||||
"Abstract class for UI operations, derive from this."
|
"Abstract class for UI operations, derive from this."
|
||||||
|
|||||||
Reference in New Issue
Block a user