* fix: notify packages to go
This commit is contained in:
+9
-1
@@ -151,6 +151,8 @@ in the respective order to satisfy extra dependencies:
|
|||||||
if ctx.get_option('dry_run'):
|
if ctx.get_option('dry_run'):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
ctx.ui.notify(ui.packagestogo, order = order)
|
||||||
|
|
||||||
for x in order:
|
for x in order:
|
||||||
atomicoperations.install_single_file(dfn[x])
|
atomicoperations.install_single_file(dfn[x])
|
||||||
|
|
||||||
@@ -225,6 +227,9 @@ in the respective order to satisfy dependencies:
|
|||||||
if len(order) > len(A_0):
|
if len(order) > len(A_0):
|
||||||
if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')):
|
if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
ctx.ui.notify(ui.packagestogo, order = order)
|
||||||
|
|
||||||
for x in order:
|
for x in order:
|
||||||
atomicoperations.install_single_name(x)
|
atomicoperations.install_single_name(x)
|
||||||
|
|
||||||
@@ -320,6 +325,8 @@ def upgrade_pkg_names(A = []):
|
|||||||
if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')):
|
if not ctx.ui.confirm(_('There are extra packages due to dependencies. Do you want to continue?')):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
ctx.ui.notify(ui.packagestogo, order = order)
|
||||||
|
|
||||||
install_ops = [atomicoperations.Install.from_name(x) for x in order]
|
install_ops = [atomicoperations.Install.from_name(x) for x in order]
|
||||||
|
|
||||||
for install in install_ops:
|
for install in install_ops:
|
||||||
@@ -450,13 +457,14 @@ in the respective order to satisfy dependencies:
|
|||||||
if ctx.get_option('dry_run'):
|
if ctx.get_option('dry_run'):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
ctx.ui.notify(ui.packagestogo, order = order)
|
||||||
|
|
||||||
for x in order:
|
for x in order:
|
||||||
if ctx.installdb.is_installed(x):
|
if ctx.installdb.is_installed(x):
|
||||||
atomicoperations.remove_single(x)
|
atomicoperations.remove_single(x)
|
||||||
else:
|
else:
|
||||||
ctx.ui.info(_('Package %s is not installed. Cannot remove.') % x)
|
ctx.ui.info(_('Package %s is not installed. Cannot remove.') % x)
|
||||||
|
|
||||||
|
|
||||||
def plan_remove(A):
|
def plan_remove(A):
|
||||||
# try to construct a pisi graph of packages to
|
# try to construct a pisi graph of packages to
|
||||||
# install / reinstall
|
# install / reinstall
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ import pisi
|
|||||||
import pisi.context as ctx
|
import pisi.context as ctx
|
||||||
|
|
||||||
(installed, upgraded, removed, installing, removing,
|
(installed, upgraded, removed, installing, removing,
|
||||||
configuring, configured, extracting, downloading) = range(9)
|
configuring, configured, extracting, downloading, packagestogo) = range(10)
|
||||||
|
|
||||||
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