* This is also wrong for upgrades. Suppose there is an upgrade for B with added dependency C,
and there is no upgrade for A. If you write "pisi upgrade A B" there will be and extra install C but with this code it wont be recognized.
This commit is contained in:
+2
-2
@@ -444,7 +444,7 @@ def upgrade_pkg_names(A = []):
|
|||||||
G_f, order = plan_upgrade(A, ignore_build)
|
G_f, order = plan_upgrade(A, ignore_build)
|
||||||
else:
|
else:
|
||||||
G_f = None
|
G_f = None
|
||||||
order = A
|
order = list(A)
|
||||||
|
|
||||||
ctx.ui.info(_('The following packages will be upgraded: ') +
|
ctx.ui.info(_('The following packages will be upgraded: ') +
|
||||||
util.strlist(order))
|
util.strlist(order))
|
||||||
@@ -456,7 +456,7 @@ def upgrade_pkg_names(A = []):
|
|||||||
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