autobuild 1.5.49 → 1.5.50

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.
data/Changes.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == Version 1.5.50
2
+ * quickfix release for installations where dpkg-architecture does not report a
3
+ DEB_BUILD_MULTIARCH variable
4
+
1
5
  == Version 1.5.49
2
6
  * when starting a command, save the command environment in the logfile
3
7
 
@@ -114,8 +114,10 @@ module Autobuild
114
114
 
115
115
  result = Set.new
116
116
  if File.file?('/usr/bin/dpkg-architecture')
117
- arch = `/usr/bin/dpkg-architecture`.split.grep(/DEB_BUILD_MULTIARCH/).first.chomp
118
- result << arch.split('=').last
117
+ arch = `/usr/bin/dpkg-architecture`.split.grep(/DEB_BUILD_MULTIARCH/).first
118
+ if arch
119
+ result << arch.chomp.split('=').last
120
+ end
119
121
  end
120
122
  @arch_names = result
121
123
  end
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.49" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.50" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 97
4
+ hash: 103
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 49
10
- version: 1.5.49
9
+ - 50
10
+ version: 1.5.50
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Joyeux