Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Prevent exception when --preserve-prefix is used without --prefix. #1927

Merged
merged 1 commit into from

2 participants

@voxik

Fixes the following exception:

$ ./configure --default-version 19 --preserve-prefix
Checking gcc: found
Checking g++: found
Checking bison: found
./configure:227:in `join': can't convert nil into String (TypeError)
    from ./configure:227:in `set_filesystem_paths'
    from ./configure:1709:in `run'
    from ./configure:1865:in `<main>'
@dbussink dbussink merged commit 21d7bf4 into rubinius:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.