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 +4 -4
- data/lib/omnibus/builder.rb +1 -1
- data/lib/omnibus/cli/base.rb +4 -0
- data/lib/omnibus/metadata.rb +6 -2
- data/lib/omnibus/packager.rb +1 -0
- data/lib/omnibus/packagers/rpm.rb +2 -2
- data/lib/omnibus/templating.rb +1 -2
- data/lib/omnibus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 425eba24bbd4c8de03b075dea1255fa5bedd3a8ae2299e277e7353d4b172553a
|
4
|
+
data.tar.gz: 61c80839060c2418ee56e831bbfa2c4e712d4c5d5287a005b5af51ada7e81002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb33e1a53677ea828fd163285dd40429792896cb9e1e06f3724225c6eeb99b82a40aacb9b4357ee80022a9fa827093061218dfb620cf3651b7445c74205a9c00
|
7
|
+
data.tar.gz: 1ca8cc40f6e4de6158384dda0c22fa43c528bc8c89778118716e4e4876de313636f5216a2a180a930c4f07c90dd49489b40c5bce1f839f92eec037bb17c72696
|
data/lib/omnibus/builder.rb
CHANGED
@@ -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 =
|
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.
|
data/lib/omnibus/cli/base.rb
CHANGED
data/lib/omnibus/metadata.rb
CHANGED
@@ -145,7 +145,11 @@ module Omnibus
|
|
145
145
|
#
|
146
146
|
def platform_shortname
|
147
147
|
if rhel?
|
148
|
-
"
|
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"
|
data/lib/omnibus/packager.rb
CHANGED
@@ -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:
|
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
|
|
data/lib/omnibus/templating.rb
CHANGED
@@ -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),
|
40
|
-
|
39
|
+
template = ERB.new(File.read(source), trim_mode: "-")
|
41
40
|
struct =
|
42
41
|
if variables.empty?
|
43
42
|
Struct.new("Empty")
|
data/lib/omnibus/version.rb
CHANGED
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.
|
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-
|
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
|