Permalink
Browse files

Merge branch 'issue_82'

  • Loading branch information...
2 parents 66624eb + 6b14395 commit e1f895e46c0384a5cf9a93125d986786c7a423f1 @jneen jneen committed Jul 27, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/fpm/target/rpm.rb
@@ -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 e1f895e

Please sign in to comment.