Bugfixes in install command
This commit is contained in:
parent
02831c71c9
commit
1a61f2cd7c
@ -128,7 +128,7 @@ class InstallService(CommandABC):
|
|||||||
if not is_already_in_project:
|
if not is_already_in_project:
|
||||||
new_package = Pip.get_package(package)
|
new_package = Pip.get_package(package)
|
||||||
if new_package is not None:
|
if new_package is not None:
|
||||||
new_package = package
|
new_package = name
|
||||||
|
|
||||||
if '/' in new_package:
|
if '/' in new_package:
|
||||||
new_package = new_package.split('/')[0]
|
new_package = new_package.split('/')[0]
|
||||||
|
@ -107,8 +107,8 @@ class UpdateService(CommandABC):
|
|||||||
if '/' in new_package:
|
if '/' in new_package:
|
||||||
new_package = new_package.split('/')[0]
|
new_package = new_package.split('/')[0]
|
||||||
|
|
||||||
if '\\' in new_package:
|
if '\r' in new_package:
|
||||||
new_package = new_package.split('\\')[0]
|
new_package = new_package.replace('\r', '')
|
||||||
|
|
||||||
self._project_settings.dependencies[index] = new_package
|
self._project_settings.dependencies[index] = new_package
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user