mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
improvements to --selective-upgrade
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+5
-2
@@ -1800,8 +1800,11 @@ def do_install(
|
||||
package__name = list(package.keys())[0]
|
||||
package__val = list(package.values())[0]
|
||||
|
||||
if not is_star(section[package__name]) and is_star(package__val):
|
||||
package_names[i] = '{0}{1}'.format(package_name, section[package__name])
|
||||
try:
|
||||
if not is_star(section[package__name]) and is_star(package__val):
|
||||
package_names[i] = '{0}{1}'.format(package_name, section[package__name])
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
for package_name in package_names:
|
||||
click.echo(crayons.normal(u'Installing {0}…'.format(crayons.green(package_name, bold=True)), bold=True))
|
||||
|
||||
Reference in New Issue
Block a user