Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix #276 Don't add empty URL #296

Merged
merged 1 commit into from Nov 27, 2012
Jump to file or symbol
Failed to load files and symbols.
+5 −1
Split
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?] -%>