omnibus 9.0.17 → 9.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91e18818ba6b01864ca40a7847beb9b9cc281db69a99ad478265beb9792411fc
4
- data.tar.gz: b25c8dca7eb871e4d1014fa61b270aa81db0653bc1a5061816e5ed8a0076c0f4
3
+ metadata.gz: 425eba24bbd4c8de03b075dea1255fa5bedd3a8ae2299e277e7353d4b172553a
4
+ data.tar.gz: 61c80839060c2418ee56e831bbfa2c4e712d4c5d5287a005b5af51ada7e81002
5
5
  SHA512:
6
- metadata.gz: 311583baefc33f9b9ac500ff1b96c5f3b0f03897e08de2135c7dedff9e0d8abc35ed1c8b414d8f291331546063e47095f4f04386db794f0895f3154105fa7fbb
7
- data.tar.gz: e1ed149a6899e29bdce5e26d2762ed984e74305dd4fcdf72d849f479a4dc1abf34a78fb448760df12ddc8d6b80e388ef9a396752bfe0e714e4d46d6cd076c1c1
6
+ metadata.gz: cb33e1a53677ea828fd163285dd40429792896cb9e1e06f3724225c6eeb99b82a40aacb9b4357ee80022a9fa827093061218dfb620cf3651b7445c74205a9c00
7
+ data.tar.gz: 1ca8cc40f6e4de6158384dda0c22fa43c528bc8c89778118716e4e4876de313636f5216a2a180a930c4f07c90dd49489b40c5bce1f839f92eec037bb17c72696
@@ -637,7 +637,7 @@ module Omnibus
637
637
  #
638
638
  def strip(path)
639
639
  regexp_ends = ".*(" + IGNORED_ENDINGS.map { |e| e.gsub(/\./, '\.') }.join("|") + ")$"
640
- regexp_patterns = IGNORED_PATTERNS.map { |e| ".*" + e.gsub(%r{/}, '\/') + ".*" }.join("|")
640
+ regexp_patterns = IGNORED_SUBSTRINGS.map { |e| ".*" + e.gsub(%r{/}, '\/') + ".*" }.join("|")
641
641
  regexp = regexp_ends + "|" + regexp_patterns
642
642
 
643
643
  # Do not actually care if strip runs on non-strippable file, as its a no-op. Hence the `|| true` appended.
@@ -32,6 +32,10 @@ module Omnibus
32
32
 
33
33
  super
34
34
  end
35
+
36
+ def exit_on_failure?
37
+ true
38
+ end
35
39
  end
36
40
 
37
41
  include Logging
@@ -145,7 +145,11 @@ module Omnibus
145
145
  #
146
146
  def platform_shortname
147
147
  if rhel?
148
- "el"
148
+ if "rocky" == Ohai["platform"]
149
+ "rocky"
150
+ else
151
+ "el"
152
+ end
149
153
  elsif suse?
150
154
  "sles"
151
155
  else
@@ -170,7 +174,7 @@ module Omnibus
170
174
  # rubocop:disable Lint/DuplicateCaseCondition
171
175
  def truncate_platform_version(platform_version, platform)
172
176
  case platform
173
- when "centos", "cumulus", "debian", "el", "fedora", "freebsd", "omnios", "pidora", "raspbian", "rhel", "sles", "suse", "smartos"
177
+ when "centos", "cumulus", "debian", "el", "fedora", "freebsd", "omnios", "pidora", "raspbian", "rhel", "rocky", "sles", "suse", "smartos"
174
178
  # Only want MAJOR (e.g. Debian 7, OmniOS r151006, SmartOS 20120809T221258Z)
175
179
  platform_version.split(".").first
176
180
  when "aix", "alpine", "openbsd", "slackware", "solaris2", "opensuse", "opensuseleap", "ubuntu", "amazon"
@@ -44,6 +44,7 @@ module Omnibus
44
44
  "rhel" => RPM,
45
45
  "wrlinux" => RPM,
46
46
  "amazon" => RPM,
47
+ "rocky" => RPM,
47
48
  "aix" => BFF,
48
49
  "solaris" => Solaris,
49
50
  "omnios" => IPS,
@@ -437,7 +437,7 @@ module Omnibus
437
437
  render_template(resource_path("rpmmacros.erb"),
438
438
  destination: "#{home}/.rpmmacros",
439
439
  variables: {
440
- gpg_name: project.maintainer,
440
+ gpg_name: "Opscode Packages",
441
441
  gpg_path: "#{ENV["HOME"]}/.gnupg", # TODO: Make this configurable
442
442
  })
443
443
  end
@@ -448,7 +448,7 @@ module Omnibus
448
448
 
449
449
  # RHEL 8 has gpg-agent running so we can skip the expect script since the agent
450
450
  # takes care of the passphrase entering on the signing
451
- if dist_tag != ".el8"
451
+ if dist_tag != ".el8" && dist_tag != ".el9"
452
452
  sign_cmd.prepend("#{signing_script} \"").concat("\"")
453
453
  end
454
454
 
@@ -36,8 +36,7 @@ module Omnibus
36
36
  # the list of variables to pass to the template
37
37
  #
38
38
  def render_template_content(source, variables = {})
39
- template = ERB.new(File.read(source), nil, "-")
40
-
39
+ template = ERB.new(File.read(source), trim_mode: "-")
41
40
  struct =
42
41
  if variables.empty?
43
42
  Struct.new("Empty")
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Omnibus
18
- VERSION = "9.0.17".freeze
18
+ VERSION = "9.0.22".freeze
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibus
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.17
4
+ version: 9.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3