Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Small style cleanups / resolve rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
movitto committed May 27, 2014
1 parent 689714e commit 8b24ac8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/gem_dependency_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
end

opts.on("--log-level level", "Log verbosity") do |l|
conf[:log_level] = l.intern
conf[:log_level] = l.to_sym
end

opts.on('--gemfile file', 'Location of the gemfile to parse') do |g|
Expand Down
8 changes: 6 additions & 2 deletions lib/polisher/git/pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
require 'polisher/rpm/spec'
require 'polisher/component'
require 'polisher/koji'
require 'polisher/logger'

module Polisher
module Git
Component.verify("Git::Pkg", 'awesome_spawn') do
# Git Based Package
class Pkg < Repo
extend Logging

attr_accessor :name
attr_accessor :version

Expand Down Expand Up @@ -187,11 +190,12 @@ def self.versions_for(name, &bl)
begin
gitpkg.fetch tgt
versions << gitpkg.spec.version
rescue
rescue => e
logger.warn "error retrieving #{name} from #{gitpkg.url}/#{tgt}(distgit): #{e}"
end
end

bl.call(:git, name, versions) unless(bl.nil?)
bl.call(:git, name, versions) unless bl.nil?
versions
end
end # module Pkg
Expand Down

0 comments on commit 8b24ac8

Please sign in to comment.