use jinja default() operator
It's much shorter ;) Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
d2aad3723f
commit
281f6f3c89
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ Version: {{ md.version }}
|
|||
Release: 1%{?dist}
|
||||
Summary: # FIXME
|
||||
|
||||
License: {{ md.license if md.license is not none else "# FIXME" }}
|
||||
License: {{ md.license|default("# FIXME") }}
|
||||
URL: https://crates.io/crates/{{ md.name }}
|
||||
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
||||
|
||||
|
|
Loading…
Reference in a new issue