Only generate a versioned package string if we have a version
When installing with pip from a remote source, we need to ensure that we are passing a package name like "git+https://git/ara@version". Change-Id: Id5b648137918f5e9a5498c10a954f5a5921cf89e
This commit is contained in:
parent
ce12da282e
commit
90df161d75
|
@ -44,7 +44,7 @@
|
|||
vars:
|
||||
# Manage that the 'version' argument doesn't work when installing from source
|
||||
pkg_name: |
|
||||
{%- if ara.params.install.pip.method == 'source' -%}
|
||||
{%- if ara.params.install.pip.method == 'source' and ara.params.install.pip.version -%}
|
||||
{{- ara.params.install.pip.source }}@{{ ara.params.install.pip.version | default('master') -}}
|
||||
{%- else -%}
|
||||
ara
|
||||
|
|
Loading…
Reference in New Issue