2021.4 #19

Merged
edraft merged 237 commits from 2021.4 into master 2021-04-01 10:13:33 +02:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit a1cd939aa1 - Show all commits

View File

@ -1,5 +1,6 @@
import os
import sys
import time
from collections import Callable
from typing import Union, Optional
@ -442,6 +443,8 @@ class Console:
for call in cls._hold_back_calls:
call.function(*call.args)
time.sleep(0.1)
return return_value
@classmethod

View File

@ -121,7 +121,9 @@ class InstallService(CommandABC):
spinner_foreground_color=ForegroundColorEnum.cyan
)
new_package = Pip.get_package(name)
if new_package is None:
if new_package is None \
or '==' in package and \
version.parse(package.split('==')[1]) != version.parse(new_package.split('==')[1]):
Console.error(f'Installation of package {package} failed')
return