Permalink
Browse files

Fix #276 Don't add empty URL

  • Loading branch information...
1 parent 4c05d2a commit 397b3b3bbcf515264b2f19c1a186ae24def2c78c @r4um r4um committed Nov 27, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 templates/rpm.erb
View
@@ -40,7 +40,11 @@ License: <%= license.gsub("\n", " ") %>
<% if !vendor.nil? and !vendor.empty? -%>
Vendor: <%= vendor %>
<% 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 %>
<% if !attributes[:no_depends?] -%>

0 comments on commit 397b3b3

Please sign in to comment.