len usage is wrong. We have to see that if there is really an extra package to be installed.
This commit is contained in:
+2
-2
@@ -321,7 +321,7 @@ def install_pkg_names(A, reinstall = False):
|
|||||||
G_f, order = plan_install_pkg_names(A)
|
G_f, order = plan_install_pkg_names(A)
|
||||||
else:
|
else:
|
||||||
G_f = None
|
G_f = None
|
||||||
order = A
|
order = list(A)
|
||||||
|
|
||||||
if len(order) > 1:
|
if len(order) > 1:
|
||||||
ctx.ui.info(_("Following packages will be installed in the respective "
|
ctx.ui.info(_("Following packages will be installed in the respective "
|
||||||
@@ -334,7 +334,7 @@ def install_pkg_names(A, reinstall = False):
|
|||||||
if ctx.get_option('dry_run'):
|
if ctx.get_option('dry_run'):
|
||||||
return
|
return
|
||||||
|
|
||||||
if len(order) > len(A_0):
|
if set(order) - 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user