use jinja default() operator

It's much shorter ;)

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-02-05 12:10:50 +01:00
parent d2aad3723f
commit 281f6f3c89

View file

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