Permalink
Browse files

Merge pull request #296 from r4um/fix_276

Fix #276 Don't add empty URL
  • Loading branch information...
2 parents 173a2fa + 397b3b3 commit 88ae16e1e180bbdff948d805e972cc05297ba7b7 @jordansissel 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 88ae16e

Please sign in to comment.