autoproj 1.9.7.rc7 → 1.9.7.rc9

Sign up to get free protection for your applications and to get access to all the features.
@@ -317,8 +317,8 @@ fi
317
317
  class PacmanManager < ShellScriptManager
318
318
  def initialize
319
319
  super(['pacman'], true,
320
- "pacman '%s'",
321
- "pacman -Sy --noconfirm '%s'")
320
+ "pacman -Sy --needed '%s'",
321
+ "pacman -Sy --needed --noconfirm '%s'")
322
322
  end
323
323
  end
324
324
 
@@ -499,6 +499,15 @@ fi
499
499
  def self.gem_home
500
500
  ENV['AUTOPROJ_GEM_HOME'] || File.join(Autoproj.root_dir, ".gems")
501
501
  end
502
+
503
+ # Returns the set of default options that are added to gem
504
+ #
505
+ # By default, we add --no-user-install to un-break distributions
506
+ # like Arch that set --user-install by default (thus disabling the
507
+ # role of GEM_HOME)
508
+ def self.default_install_options
509
+ @default_install_options ||= ['--no-user-install', '--no-format-executable']
510
+ end
502
511
 
503
512
  def initialize
504
513
  super(['gem'])
@@ -544,7 +553,7 @@ fi
544
553
  def install(gems)
545
554
  guess_gem_program
546
555
 
547
- base_cmdline = [Autobuild.tool_in_path('ruby'), '-S', Autobuild.tool('gem'), 'install', '--no-format-executable']
556
+ base_cmdline = [Autobuild.tool_in_path('ruby'), '-S', Autobuild.tool('gem'), 'install', *GemManager.default_install_options]
548
557
  if !GemManager.with_doc
549
558
  base_cmdline << '--no-rdoc' << '--no-ri'
550
559
  end
@@ -856,7 +865,6 @@ fi
856
865
  'debian' => 'apt-dpkg',
857
866
  'gentoo' => 'emerge',
858
867
  'arch' => 'pacman',
859
- 'manjarolinux' => 'pacman',
860
868
  'fedora' => 'yum',
861
869
  'darwin' => 'port',
862
870
  'opensuse' => 'zypper'
@@ -1043,7 +1051,7 @@ fi
1043
1051
  @operating_system = [names.split(','), versions.split(',')]
1044
1052
  end
1045
1053
  else
1046
- Autoproj.message " autodetecting the operating system"
1054
+ Autobuild.progress :operating_system_autodetection, "autodetecting the operating system"
1047
1055
  lsb_name, lsb_versions = os_from_lsb
1048
1056
  if lsb_name
1049
1057
  if lsb_name != 'debian' && File.exists?("/etc/debian_version")
@@ -1111,7 +1119,10 @@ fi
1111
1119
 
1112
1120
  @operating_system = [names, versions]
1113
1121
  Autoproj.change_option('operating_system', @operating_system, true)
1122
+ Autobuild.progress :operating_system_autodetection, "operating system: #{(names - ['default']).join(",")} - #{(versions - ['default']).join(",")}"
1114
1123
  @operating_system
1124
+ ensure
1125
+ Autobuild.progress_done :operating_system_autodetection
1115
1126
  end
1116
1127
 
1117
1128
  def self.os_from_lsb
@@ -201,8 +201,8 @@ fi
201
201
  class PacmanManager < ShellScriptManager
202
202
  def initialize
203
203
  super(['pacman'], true,
204
- "pacman '%s'",
205
- "pacman -Sy --noconfirm '%s'")
204
+ "pacman -Sy --needed '%s'",
205
+ "pacman -Sy --needed --noconfirm '%s'")
206
206
  end
207
207
  end
208
208
 
@@ -383,6 +383,15 @@ fi
383
383
  def self.gem_home
384
384
  ENV['AUTOPROJ_GEM_HOME'] || File.join(Autoproj.root_dir, ".gems")
385
385
  end
386
+
387
+ # Returns the set of default options that are added to gem
388
+ #
389
+ # By default, we add --no-user-install to un-break distributions
390
+ # like Arch that set --user-install by default (thus disabling the
391
+ # role of GEM_HOME)
392
+ def self.default_install_options
393
+ @default_install_options ||= ['--no-user-install', '--no-format-executable']
394
+ end
386
395
 
387
396
  def initialize
388
397
  super(['gem'])
@@ -428,7 +437,7 @@ fi
428
437
  def install(gems)
429
438
  guess_gem_program
430
439
 
431
- base_cmdline = [Autobuild.tool_in_path('ruby'), '-S', Autobuild.tool('gem'), 'install', '--no-format-executable']
440
+ base_cmdline = [Autobuild.tool_in_path('ruby'), '-S', Autobuild.tool('gem'), 'install', *GemManager.default_install_options]
432
441
  if !GemManager.with_doc
433
442
  base_cmdline << '--no-rdoc' << '--no-ri'
434
443
  end
@@ -740,7 +749,6 @@ fi
740
749
  'debian' => 'apt-dpkg',
741
750
  'gentoo' => 'emerge',
742
751
  'arch' => 'pacman',
743
- 'manjarolinux' => 'pacman',
744
752
  'fedora' => 'yum',
745
753
  'darwin' => 'port',
746
754
  'opensuse' => 'zypper'
@@ -927,7 +935,7 @@ fi
927
935
  @operating_system = [names.split(','), versions.split(',')]
928
936
  end
929
937
  else
930
- Autoproj.message " autodetecting the operating system"
938
+ Autobuild.progress :operating_system_autodetection, "autodetecting the operating system"
931
939
  lsb_name, lsb_versions = os_from_lsb
932
940
  if lsb_name
933
941
  if lsb_name != 'debian' && File.exists?("/etc/debian_version")
@@ -995,7 +1003,10 @@ fi
995
1003
 
996
1004
  @operating_system = [names, versions]
997
1005
  Autoproj.change_option('operating_system', @operating_system, true)
1006
+ Autobuild.progress :operating_system_autodetection, "operating system: #{(names - ['default']).join(",")} - #{(versions - ['default']).join(",")}"
998
1007
  @operating_system
1008
+ ensure
1009
+ Autobuild.progress_done :operating_system_autodetection
999
1010
  end
1000
1011
 
1001
1012
  def self.os_from_lsb
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.9.7.rc7"
2
+ VERSION = "1.9.7.rc9"
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.rc7
4
+ version: 1.9.7.rc9
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: