autoproj 1.9.7.rc4 → 1.9.7.rc5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2383,7 +2383,7 @@ lsb_release:
2383
2383
  arch,manjarolinux: lsb-release
2384
2384
  fedora: redhat-lsb
2385
2385
  darwin: ignore
2386
- opensuse: ignore
2386
+ opensuse: lsb-release
2387
2387
  archive:
2388
2388
  debian,ubuntu:
2389
2389
  - tar
@@ -58,7 +58,7 @@ module Autoproj
58
58
  Autoproj.change_option('ruby_executable', ruby_executable, true)
59
59
 
60
60
  install_suffix = ""
61
- if match = /ruby(.*)$/.match(ruby)
61
+ if match = /ruby(.*)$/.match(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
62
62
  install_suffix = match[1]
63
63
  end
64
64
 
@@ -68,7 +68,7 @@ module Autoproj
68
68
 
69
69
  File.open(File.join(bindir, 'ruby'), 'w') do |io|
70
70
  io.puts "#! /bin/sh"
71
- io.puts "exec #{File.join(ruby_bindir, ruby)} \"$@\""
71
+ io.puts "exec #{ruby_executable} \"$@\""
72
72
  end
73
73
  FileUtils.chmod 0755, File.join(bindir, 'ruby')
74
74
 
@@ -77,7 +77,7 @@ module Autoproj
77
77
  prg_name = "#{name}#{install_suffix}"
78
78
  if File.file?(prg_path = File.join(ruby_bindir, prg_name))
79
79
  File.open(File.join(bindir, name), 'w') do |io|
80
- io.puts "#! #{File.join(ruby_bindir, ruby)}"
80
+ io.puts "#! #{ruby_executable}"
81
81
  io.puts "exec \"#{prg_path}\", *ARGV"
82
82
  end
83
83
  FileUtils.chmod 0755, File.join(bindir, name)
@@ -209,6 +209,8 @@ module Autoproj
209
209
  def self.update_myself
210
210
  return if !Autoproj::CmdLine.update_os_dependencies?
211
211
 
212
+ handle_ruby_version
213
+
212
214
  # This is a guard to avoid infinite recursion in case the user is
213
215
  # running autoproj osdeps --force
214
216
  if ENV['AUTOPROJ_RESTARTING'] == '1'
@@ -227,11 +229,10 @@ module Autoproj
227
229
  Autoproj.save_config
228
230
  ENV['AUTOPROJ_RESTARTING'] = '1'
229
231
  require 'rbconfig'
230
- ruby = RbConfig::CONFIG['RUBY_INSTALL_NAME']
231
232
  if defined?(ORIGINAL_ARGV)
232
- exec(ruby, $0, *ORIGINAL_ARGV)
233
+ exec(ruby_executable, $0, *ORIGINAL_ARGV)
233
234
  else
234
- exec(ruby, $0, *ARGV)
235
+ exec(ruby_executable, $0, *ARGV)
235
236
  end
236
237
  end
237
238
  end
@@ -141,7 +141,7 @@ lsb_release:
141
141
  arch,manjarolinux: lsb-release
142
142
  fedora: redhat-lsb
143
143
  darwin: ignore
144
- opensuse: ignore
144
+ opensuse: lsb-release
145
145
 
146
146
  archive:
147
147
  debian,ubuntu:
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.9.7.rc4"
2
+ VERSION = "1.9.7.rc5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7.rc4
4
+ version: 1.9.7.rc5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: