Skip to content

Commit

Permalink
repo_config.buildallfile will never be false
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 authored and defunkt committed Jul 24, 2010
1 parent 2c8269f commit 7647535
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cijoe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def pid
# kill the child and exit
def stop
# another build waits
if repo_config.buildallfile && File.exist?(repo_config.buildallfile.to_s)
if !repo_config.buildallfile.to_s.empty? && File.exist?(repo_config.buildallfile.to_s)
# clean out on stop
FileUtils.rm(repo_config.buildallfile.to_s)
end
Expand Down Expand Up @@ -80,7 +80,7 @@ def finish_build(status, output)
@last_build.notify if @last_build.respond_to? :notify

# another build waits
if repo_config.buildallfile && File.exist?(repo_config.buildallfile.to_s)
if !repo_config.buildallfile.to_s.empty? && File.exist?(repo_config.buildallfile.to_s)
# clean out before new build
FileUtils.rm(repo_config.buildallfile.to_s)
build
Expand All @@ -92,7 +92,7 @@ def finish_build(status, output)
def build
if building?
# only if switched on to build all incoming requests
if repo_config.buildallfile
if !repo_config.buildallfile.to_s.empty?
# and there is no previous request
return if File.exist?(repo_config.buildallfile.to_s)
# we will mark awaiting builds
Expand Down

0 comments on commit 7647535

Please sign in to comment.