Skip to content

Commit

Permalink
Add default empty for scripts. Remove newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
iyuroch committed May 11, 2019
1 parent de2f9ce commit 1f74ae2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions py2pack/templates/fedora.spec
Expand Up @@ -53,14 +53,9 @@ rm -rf %{buildroot}
{%- if doc_files %}
%doc {{ doc_files|join(" ") }}
{%- endif %}

{%- if scripts and scripts is not None %}
{%- for script in scripts %}
%{_bindir}/{{ script }}
{%- endfor %}
{%- endif %}

{%- for script in scripts|default([], true) %}
%{_bindir}/{{ script }}
{%- endfor %}
%{python_sitelib}/*

%changelog

0 comments on commit 1f74ae2

Please sign in to comment.