Skip to content

Commit

Permalink
Merge pull request #296 from r4um/fix_276
Browse files Browse the repository at this point in the history
Fix #276 Don't add empty URL
  • Loading branch information
jordansissel committed Nov 27, 2012
2 parents 173a2fa + 397b3b3 commit 88ae16e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/rpm.erb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ License: <%= license.gsub("\n", " ") %>
<% if !vendor.nil? and !vendor.empty? -%> <% if !vendor.nil? and !vendor.empty? -%>
Vendor: <%= vendor %> Vendor: <%= vendor %>
<% end -%> <% end -%>
URL: <%= url or "http://nourlgiven.example.com/" %> <% if !url.nil? and !url.empty? -%>
URL: <%= url %>
<%else -%>
URL: http://nourlgiven.example.com/
<% end -%>
Packager: <%= maintainer %> Packager: <%= maintainer %>
<% if !attributes[:no_depends?] -%> <% if !attributes[:no_depends?] -%>
Expand Down

0 comments on commit 88ae16e

Please sign in to comment.