simp-rake-helpers 5.12.5 → 5.12.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/simp/rake/build/build.rb +1 -1
- data/lib/simp/rake/build/iso.rb +6 -1
- data/lib/simp/rake/build/pkg.rb +12 -2
- data/lib/simp/rake/helpers/version.rb +1 -1
- data/lib/simp/rpm_signer.rb +8 -3
- 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: 51d1aeb754d81247df05b01fce650e64c4b03fdab941f955e3180e79edcc2964
|
4
|
+
data.tar.gz: e8d8c2ef11a657dfce5bd7755d94f024bd2466fbad243f930f6624bc7e699955
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff5da7ac89c5cf55ae28d69be89992a904e0341c33534e3e301eee6a409d7f801d2df49a2de8dc889e46eb1defb42233c5e707bf8d67c215972998f2a483272a
|
7
|
+
data.tar.gz: 9a3bc2da54cc811be5c3129665124c90761f0c7a962ab54a1c8b11722e506b0691a7d429492e1d30d29930d082af942472dd7984b1bb674d5fe7c0c34928179a
|
data/CHANGELOG.md
CHANGED
@@ -282,7 +282,7 @@ module Simp::Rake::Build
|
|
282
282
|
Error: Could not find anything to do!
|
283
283
|
|
284
284
|
In #{target_dir}:
|
285
|
-
No packages in either packages.yaml or the packages/ directory
|
285
|
+
No packages in either packages.yaml or the packages/ directory and no repos found in the reposync/ directory
|
286
286
|
EOM
|
287
287
|
end
|
288
288
|
|
data/lib/simp/rake/build/iso.rb
CHANGED
@@ -363,7 +363,12 @@ module Simp::Rake::Build
|
|
363
363
|
# to exclude
|
364
364
|
next if rpm.match(%r{/SimpRepos|/SIMP})
|
365
365
|
|
366
|
-
|
366
|
+
rpm_dest = File.basename(rpm)
|
367
|
+
if File.exist?(rpm) && File.exist?(rpm_dest)
|
368
|
+
next if (File.realpath(rpm) == File.realpath(rpm_dest))
|
369
|
+
end
|
370
|
+
|
371
|
+
ln_sf(rpm, rpm_dest, :verbose => verbose)
|
367
372
|
end
|
368
373
|
end
|
369
374
|
|
data/lib/simp/rake/build/pkg.rb
CHANGED
@@ -643,7 +643,8 @@ protect=1
|
|
643
643
|
file.write(ERB.new(yum_conf_template,nil,'-').result(binding))
|
644
644
|
end
|
645
645
|
|
646
|
-
|
646
|
+
dnf_system = which('dnf')
|
647
|
+
if dnf_system
|
647
648
|
cmd = 'repoclosure -c base.conf --disablerepo=* --enablerepo=base'
|
648
649
|
else
|
649
650
|
cmd = 'repoclosure -c repodata -n -t -r base -l lookaside -c yum.conf'
|
@@ -661,7 +662,16 @@ protect=1
|
|
661
662
|
if (!$?.success? || (repoclosure_output =~ /nresolved/))
|
662
663
|
errmsg = ['Error: REPOCLOSURE FAILED:']
|
663
664
|
errmsg << [repoclosure_output]
|
664
|
-
|
665
|
+
puts(errmsg.join("\n"))
|
666
|
+
|
667
|
+
if dnf_system
|
668
|
+
if ENV.fetch('SIMP_BUILD_prompt', 'yes') != 'no'
|
669
|
+
puts('- Press any key to continue or ^C to abort -')
|
670
|
+
$stdin.gets
|
671
|
+
end
|
672
|
+
else
|
673
|
+
fail('Repoclosure Failed')
|
674
|
+
end
|
665
675
|
end
|
666
676
|
end
|
667
677
|
end
|
data/lib/simp/rpm_signer.rb
CHANGED
@@ -195,8 +195,13 @@ class Simp::RpmSigner
|
|
195
195
|
# the first RPM to be signed with the key after the gpg-agent is
|
196
196
|
# started and the key's passphrase has not been cleared from the
|
197
197
|
# agent's cache.
|
198
|
-
read.expect(/pass\s?phrase
|
199
|
-
|
198
|
+
read.expect(/(pass\s?phrase:|verwrite).*/) do |text|
|
199
|
+
if text.last.include?('verwrite')
|
200
|
+
write.puts('y')
|
201
|
+
else
|
202
|
+
write.puts(gpgkey[:password])
|
203
|
+
end
|
204
|
+
|
200
205
|
write.flush
|
201
206
|
end
|
202
207
|
end
|
@@ -287,7 +292,7 @@ class Simp::RpmSigner
|
|
287
292
|
begin
|
288
293
|
results = Parallel.map(
|
289
294
|
to_sign,
|
290
|
-
:in_processes =>
|
295
|
+
:in_processes => 1,
|
291
296
|
:progress => opts[:progress_bar_title]
|
292
297
|
) do |rpm|
|
293
298
|
_result = nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rake-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.12.
|
4
|
+
version: 5.12.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-10-
|
12
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simp-beaker-helpers
|