simp-rake-helpers 5.13.0 → 5.13.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5686fa0464ed4e47817e43609d4aa2ec52ccab1a9facd6429d73ec39b321f487
4
- data.tar.gz: f787b34312ad9033c21811615adb5eb8d069655038e309109fab82560f1e0b81
3
+ metadata.gz: b6f0550abc4ac7ec968a8590bbc7003d0de2753ae072909396fce25c01a7edd3
4
+ data.tar.gz: 4eb8efa7f00322290a3a45a6e304ac6b1798e3d47283e1ad525184ae95f9560f
5
5
  SHA512:
6
- metadata.gz: 64c644cf1b04dbceaface541e8b6d219a7d6d9f93ed863a18062b25dece5307d62715a1fee0351e444c3f00e9c8ce476b7455a08f2b76291184949796e1770cf
7
- data.tar.gz: 18663a6da6f497810c0d505d2fd73109cd97355b664deaa3609f60787dd280fb6a6bee6f3e0f2fa473dacffc696bb369994396b271f48bebeae6fb1a31fabdc4
6
+ metadata.gz: e6eef279b4061c054908d69ab0408e5e850149bc92689db7b64f167d9815186af793a07c905bbf47d71763107088cdd4059da6f31e95f775410ab03803428b68
7
+ data.tar.gz: 4bf2a7cfedbd8a9a711f9ba19e62ad16c0dcd593511ab21d249eda819b1ac67ba7ed0285a085057e7b68e31a700fdb185d57736a773734512821781096bad478
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ### 5.13.0 /2021-11-14
1
+ ### 5.13.1 / 2022-05-01
2
+ - Fixed:
3
+ - Aligned wtih an API change in the `dirty?` method in `r10k`
4
+
5
+ ### 5.13.0 / 2021-11-14
2
6
  - Added:
3
7
  - Output the full `mkisofs` command when building an ISO
4
8
 
@@ -110,14 +110,15 @@ module Simp::Rake::Build
110
110
  - SIMP_BUILD_docs => 'yes' builds & includes documentation
111
111
  - SIMP_BUILD_checkout => 'no' will skip the git repo checkouts
112
112
  - SIMP_BUILD_bundle => 'no' skips running bundle in each subrepo
113
- - SIMP_BUILD_unpack => 'no' skips the unpack section
114
- - SIMP_BUILD_unpack_merge => 'no' prevents auto-merging the unpacked DVD
113
+ - SIMP_BUILD_unpack => 'no' prevents unpacking the source ISO
114
+ - SIMP_BUILD_unpack_merge => 'no' prevents auto-merging the unpacked ISO
115
115
  - SIMP_BUILD_prune => 'no' passes :prune=>false to iso:build
116
116
  - SIMP_BUILD_iso_name => Renames the output ISO filename [Default: false]
117
117
  - SIMP_BUILD_iso_tag => Appended to the output ISO's filename [Default: false]
118
118
  - SIMP_BUILD_update_packages => Automatically update any necessary packages in the packages.yaml file [Default: false]
119
119
  - SIMP_BUILD_verbose => 'yes' enables verbose reporting. [Default: 'no']
120
120
  - SIMP_BUILD_signing_key => The name of the GPG key to use to sign packages. [Default: 'dev']
121
+ - SIMP_BUILD_reposync_only => 'yes' skips unpacking the locally-build tarball so that you only get items from the reposync directory (if present)
121
122
  EOM
122
123
 
123
124
  task :auto, [:iso_paths,
@@ -16,7 +16,7 @@ class R10KHelper
16
16
  end
17
17
 
18
18
  # Return true if the repository has local modifications, false otherwise.
19
- def dirty?
19
+ def dirty?(exclude_spec=false)
20
20
  repo_status = false
21
21
 
22
22
  return repo_status unless File.directory?(path)
@@ -252,61 +252,77 @@ module Simp::Rake::Build
252
252
  end
253
253
  end
254
254
 
255
- # Add the SIMP code
256
- system("tar --no-same-permissions -C #{dir} -xzf #{tball}")
257
-
258
- # Pop the SIMP directory from the tarball into the correct spot
259
- # FIXME: This is a hack
260
- unless dir == repo_target_dir
261
- simpdir = File.join(dir,'SIMP')
262
-
263
- if File.directory?(simpdir)
264
- cp_r(simpdir, repo_target_dir, :verbose => verbose)
265
- rm_rf(simpdir, :verbose => verbose)
266
- end
255
+ reposync_only = (ENV.fetch('SIMP_BUILD_reposync_only', 'no') == 'yes')
256
+ if reposync_only && !reposync_active
257
+ fail("ERROR: Reposync-only requested, but no reposync content found")
267
258
  end
268
259
 
269
- Dir.chdir("#{repo_target_dir}/SIMP") do
270
- # Add the SIMP Dependencies
271
- simp_base_ver = simpver.split('-').first
260
+ if reposync_only
261
+ puts
262
+ puts '-'*80
263
+ puts '### Reposync-Only Mode ###'
264
+ puts
265
+ puts ' Locally built packages will not be added'
266
+ puts
267
+ puts '-'*80
268
+ puts
269
+ else
270
+ # Add the SIMP code
271
+ system("tar --no-same-permissions -C #{dir} -xzf #{tball}")
272
+
273
+ # Pop the SIMP directory from the tarball into the correct spot
274
+ # FIXME: This is a hack
275
+ unless dir == repo_target_dir
276
+ simpdir = File.join(dir,'SIMP')
272
277
 
273
- if $simp6
274
- yum_dep_location = File.join(@build_dir,'yum_data','packages')
275
- else
276
- simp_dep_src = %(SIMP#{simp_base_ver}_#{baseos}#{baseosver}_#{arch})
277
- yum_dep_location = File.join(@build_dir,'yum_data',simp_dep_src,'packages')
278
+ if File.directory?(simpdir)
279
+ cp_r(simpdir, repo_target_dir, :verbose => verbose)
280
+ rm_rf(simpdir, :verbose => verbose)
281
+ end
278
282
  end
279
283
 
280
- yum_dep_rpms = Dir.glob(File.join(yum_dep_location,'*.rpm'))
284
+ Dir.chdir("#{repo_target_dir}/SIMP") do
285
+ # Add the SIMP Dependencies
286
+ simp_base_ver = simpver.split('-').first
281
287
 
282
- unless File.directory?(yum_dep_location)
283
- fail("Could not find dependency directory at #{yum_dep_location}") unless reposync_active
284
- end
288
+ if $simp6
289
+ yum_dep_location = File.join(@build_dir,'yum_data','packages')
290
+ else
291
+ simp_dep_src = %(SIMP#{simp_base_ver}_#{baseos}#{baseosver}_#{arch})
292
+ yum_dep_location = File.join(@build_dir,'yum_data',simp_dep_src,'packages')
293
+ end
285
294
 
286
- if yum_dep_rpms.empty?
287
- fail("Could not find any dependency RPMs at #{yum_dep_location}") unless reposync_active
288
- end
295
+ yum_dep_rpms = Dir.glob(File.join(yum_dep_location,'*.rpm'))
289
296
 
290
- # Add any one-off RPMs that you might want to add to your own build
291
- # These are *not* checked to make sure that they actually match your
292
- # environment
293
- aux_packages = File.join(File.dirname(yum_dep_location),'aux_packages')
294
- if File.directory?(aux_packages)
295
- yum_dep_rpms += Dir.glob(File.join(aux_packages,'*.rpm'))
296
- end
297
+ unless File.directory?(yum_dep_location)
298
+ fail("Could not find dependency directory at #{yum_dep_location}") unless reposync_active
299
+ end
297
300
 
298
- yum_dep_rpms.each do |rpm|
299
- rpm_arch = rpm.split('.')[-2]
301
+ if yum_dep_rpms.empty?
302
+ fail("Could not find any dependency RPMs at #{yum_dep_location}") unless reposync_active
303
+ end
300
304
 
301
- unless File.directory?(rpm_arch)
302
- mkdir(rpm_arch)
305
+ # Add any one-off RPMs that you might want to add to your own build
306
+ # These are *not* checked to make sure that they actually match your
307
+ # environment
308
+ aux_packages = File.join(File.dirname(yum_dep_location),'aux_packages')
309
+ if File.directory?(aux_packages)
310
+ yum_dep_rpms += Dir.glob(File.join(aux_packages,'*.rpm'))
303
311
  end
304
312
 
305
- # Just in case this is a symlink, broken, or some other nonsense.
306
- target_file = File.join(rpm_arch,File.basename(rpm))
307
- rm_f(target_file) if File.exist?(target_file)
313
+ yum_dep_rpms.each do |rpm|
314
+ rpm_arch = rpm.split('.')[-2]
315
+
316
+ unless File.directory?(rpm_arch)
317
+ mkdir(rpm_arch)
318
+ end
319
+
320
+ # Just in case this is a symlink, broken, or some other nonsense.
321
+ target_file = File.join(rpm_arch,File.basename(rpm))
322
+ rm_f(target_file) if File.exist?(target_file)
308
323
 
309
- cp(rpm,rpm_arch, :verbose => verbose)
324
+ cp(rpm,rpm_arch, :verbose => verbose)
325
+ end
310
326
  end
311
327
 
312
328
  if reposync_active
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '5.13.0'
5
+ VERSION = '5.13.1'
6
6
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
 
4
4
  describe Simp::Rake::Build::Helpers do
5
5
  before :each do
6
- dir = File.expand_path( '../../files/simp_build', File.dirname( __FILE__ ) )
6
+ dir = File.expand_path( '../../files/simp_build', File.dirname( __FILE__ ) )
7
7
  env = ENV['SIMP_RPM_dist'].dup
8
8
  ENV['SIMP_RPM_dist'] = '.el7'
9
9
  @obj = Simp::Rake::Build::Helpers.new( dir )
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.13.0
4
+ version: 5.13.1
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: 2022-01-11 00:00:00.000000000 Z
12
+ date: 2022-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simp-beaker-helpers
@@ -592,8 +592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
592
592
  - !ruby/object:Gem::Version
593
593
  version: '0'
594
594
  requirements: []
595
- rubyforge_project:
596
- rubygems_version: 2.7.6.3
595
+ rubygems_version: 3.0.9
597
596
  signing_key:
598
597
  specification_version: 4
599
598
  summary: SIMP rake helpers