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:
David Moreau Simard 2018-06-19 10:20:20 -04:00
parent ce12da282e
commit 90df161d75
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
1 changed files with 1 additions and 1 deletions

View File

@ -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