Skip to content
Browse files

Merge pull request #1927 from voxik/fix-preserve-prefix

Prevent exception when --preserve-prefix is used without --prefix.
  • Loading branch information...
2 parents 24adadf + 52d0f5d commit 21d7bf40c2e8acfca23b94e68d83b69e8289bb82 @dbussink dbussink committed Sep 27, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 configure
View
6 configure
@@ -211,8 +211,10 @@ class Configure
dirs.each { |d| d.replace d[size..-1] }
- @stagingdir = "#{@sourcedir}/staging" unless @prefixdir == @sourcedir
- @stagingdir = File.join @stagingdir, @prefixdir if @preserve_prefix
+ unless @prefixdir == @sourcedir
+ @stagingdir = "#{@sourcedir}/staging"
+ @stagingdir = File.join @stagingdir, @prefixdir if @preserve_prefix
+ end
end
def options

0 comments on commit 21d7bf4

Please sign in to comment.
Something went wrong with that request. Please try again.