Permalink
Browse files

proposed fix for issue #82

  • Loading branch information...
1 parent 66624eb commit 6b14395558a88f0b44f7e7a9c128ec0718d1dda0 @jneen jneen committed Jul 27, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/fpm/target/rpm.rb
View
@@ -19,6 +19,14 @@ def specfile(builddir)
"#{builddir}/#{name}.spec"
end
+ def url
+ if @url.nil? || @url.empty?
+ 'http://nourlgiven.example.com'
+ else
+ @url
+ end
+ end
+
def build!(params)
raise "No package name given. Can't assemble package" if !@name
# TODO(sissel): Abort if 'rpmbuild' tool not found.

0 comments on commit 6b14395

Please sign in to comment.