Skip to content

Commit

Permalink
Merge branch 'issue_82'
Browse files Browse the repository at this point in the history
  • Loading branch information
jneen committed Jul 27, 2011
2 parents 66624eb + 6b14395 commit e1f895e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/fpm/target/rpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e1f895e

Please sign in to comment.