simp-rake-helpers 5.12.5 → 5.12.6

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: af430b5f3668ec96a8f12d66b7210e176083e9377ccfefd06fa92050ee56f77a
4
- data.tar.gz: 423871d8e7f99d01d6065809ea1cfea2b76abae47b84add3197b982d042b3de3
3
+ metadata.gz: 51d1aeb754d81247df05b01fce650e64c4b03fdab941f955e3180e79edcc2964
4
+ data.tar.gz: e8d8c2ef11a657dfce5bd7755d94f024bd2466fbad243f930f6624bc7e699955
5
5
  SHA512:
6
- metadata.gz: 9424b979c1f67e6fba2ecedb6c8229e111c017a987f69ee7c9eea7db60d715b23530c91bd8baf01d44e11f0e1b16c73d016c13905c87e7f5540b7c5b072ab7bd
7
- data.tar.gz: 9c43ca061b10e4241695b108af43a27c20e06f430d1cdaf349cd15e68333ee5f389e7f74427e9ab495cfc3f52df4786bf576ce99d00e66356c24db4b5d6694f0
6
+ metadata.gz: ff5da7ac89c5cf55ae28d69be89992a904e0341c33534e3e301eee6a409d7f801d2df49a2de8dc889e46eb1defb42233c5e707bf8d67c215972998f2a483272a
7
+ data.tar.gz: 9a3bc2da54cc811be5c3129665124c90761f0c7a962ab54a1c8b11722e506b0691a7d429492e1d30d29930d082af942472dd7984b1bb674d5fe7c0c34928179a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 5.12.6 / 2021-10-19
2
+ - Ensure that the `Updates` directory does not link to files in itself
3
+
1
4
  ### 5.12.5 / 2021-10-07
2
5
  - Fixed a bug where `build:auto` failed when building the SIMP ISO for EL7,
3
6
  because the code attempted to move a directory onto itself.
@@ -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
 
@@ -363,7 +363,12 @@ module Simp::Rake::Build
363
363
  # to exclude
364
364
  next if rpm.match(%r{/SimpRepos|/SIMP})
365
365
 
366
- ln_sf(rpm, '.', :verbose => verbose)
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
 
@@ -643,7 +643,8 @@ protect=1
643
643
  file.write(ERB.new(yum_conf_template,nil,'-').result(binding))
644
644
  end
645
645
 
646
- if which('dnf')
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
- fail(errmsg.join("\n"))
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
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '5.12.5'
5
+ VERSION = '5.12.6'
6
6
  end
@@ -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:.*/) do |text|
199
- write.puts(gpgkey[:password])
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 => opts[:max_concurrent],
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.5
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-15 00:00:00.000000000 Z
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