simp-rake-helpers 1.1.0 → 1.1.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmM4NTg3YTQxOTJiN2M2OWQzYmUyYzNkYjJiNzUzZDNjYWNmOWNmMA==
4
+ NDg3MWJlYTIwNDYzNDAzZWI4MTgxMDUyNWIzMmJhNjJhZGI0NzQ2ZQ==
5
5
  data.tar.gz: !binary |-
6
- NDVkODU1ODAyNmI3ZmFjMGRmOTFiN2NkNzZiYjdkNTlkNjY3Yjk5Yg==
6
+ MDViOWQ1MjVjNGYyMmQ5ZGEyZTY4NjJmMmRiZGY3OTc3YTBhNTg5ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmJlOWM0NWU2ZTllZGE0Mjc4NTc3MmVjNzZiMDEyMDg0ZjQ1MzdlYjY0N2Zl
10
- YWZkZTc2Y2MxMDFjYzMzZTY2MjhlMTk3ZWYyOWU3OTA5YTJkNTYwMTJkNjFh
11
- N2JjZWJmZjgwY2VjMThhZDRiOGRiM2Q3NWVkZjk0Zjc2ZTI0Mjg=
9
+ NDhkNTEyMDUzMmUzMDY0NjVlOTM5NjRkNzNmY2NmOGEyODM3ZTE2YTRhZWQ0
10
+ MjI1MjgyMzhkNjIxNDI5NGNjOGNlNDkwMzUwMGU2NDMxNThjMDNiMThlN2My
11
+ MTA1MDI3NTQwNmIxYmM1ZGFiMmE2MWZhZWZmMTU3ZjQzZTk4NDA=
12
12
  data.tar.gz: !binary |-
13
- Y2EwYzRkOTkzNmIxNmMwMjk0MTg5ODE1MWY1MjRlYzUxMjZkYTlhYTBlZjJl
14
- NjBiYjMzNWRkYTA2MDU0NmUxMDhlZjMwNmNjYjFlNDU0MzhhMGE2YWU0NWNh
15
- NzQyMTM0MmJiMDBmMjRlYTY4ODc4NjIwZjVkNTIzNjkzYWEzZjY=
13
+ NWU5NDZkZThiMmFkZTc1MTkyOTQ4MDFhNWYwMTZhZjA5OGEyYzI2N2UwYTQw
14
+ Y2Q1NWFiN2MzYThlODg2Yzc0ZjVjOTI3NjE1NmJlOGRjNGMyMmE0ZDFjZjVk
15
+ NzAyYTU3NTU2MjUxNWI1NzU4MTFhMzFiNTljNzM5Yzc3NGE5Njk=
@@ -244,6 +244,23 @@ module Simp::Rake::Build
244
244
 
245
245
  Rake::Task['iso:build'].invoke(tarball,staging_dir,do_prune)
246
246
 
247
+
248
+ _isos = Dir[ File.join(Dir.pwd,'SIMP-*.iso') ]
249
+ if _isos.size == 0
250
+ fail "ERROR: No SIMP ISOs found in '#{Dir.pwd}'"
251
+ elsif _isos.size > 1
252
+ warn "WARNING: More than one SIMP ISO found in '#{Dir.pwd}'"
253
+ _isos.each{ |i| warn i }
254
+ end
255
+
256
+ # NOTE: It is possible at this point (given the right
257
+ # `SIMP_BUILD_xxx=no` flags) that iso:build will not have set
258
+ # `@simp_output_iso`. So, we look at the ISOs in the staging dir
259
+ # (there should only be one) and take our best guess.
260
+ if @simp_output_iso.nil?
261
+ @simp_output_iso = File.basename(_isos.first)
262
+ end
263
+
247
264
  output_file = full_iso_name ? full_iso_name : @simp_output_iso
248
265
  if iso_name_tag
249
266
  output_file.sub!(/\.iso$/i, "__#{iso_name_tag}.iso")
@@ -107,7 +107,7 @@ module Simp::Rake::Build
107
107
 
108
108
  tarfiles = File.directory?(tarball) ?
109
109
  Dir.glob("#{tarball}/*.tar.gz") : [tarball]
110
- vermap = YAML::load_file("#{@base_dir}/rakefiles/vermap.yaml")
110
+ vermap = YAML::load_file( File.join( File.dirname(__FILE__), 'vermap.yaml'))
111
111
 
112
112
  tarfiles.each do |tarball|
113
113
  namepieces = File.basename(tarball,".tar.gz").split('-')
@@ -479,27 +479,27 @@ module Simp::Rake::Build
479
479
  end
480
480
 
481
481
  yum_conf_template = <<-EOF
482
- [main]
483
- keepcache=0
484
- exactarch=1
485
- obsoletes=1
486
- gpgcheck=0
487
- plugins=1
488
- installonly_limit=5
489
-
490
- <% repo_files.each do |repo| -%>
491
- include=file://<%= repo %>
492
- <% end -%>
493
- EOF
482
+ [main]
483
+ keepcache=0
484
+ exactarch=1
485
+ obsoletes=1
486
+ gpgcheck=0
487
+ plugins=1
488
+ installonly_limit=5
489
+
490
+ <% repo_files.each do |repo| -%>
491
+ include=file://<%= repo %>
492
+ <% end -%>
493
+ EOF
494
494
 
495
495
  yum_repo_template = <<-EOF
496
- [<%= repo_name %>]
497
- name=<%= repo_name %>
498
- baseurl=file://<%= repo_path %>
499
- enabled=1
500
- gpgcheck=0
501
- protect=1
502
- EOF
496
+ [<%= repo_name %>]
497
+ name=<%= repo_name %>
498
+ baseurl=file://<%= repo_path %>
499
+ enabled=1
500
+ gpgcheck=0
501
+ protect=1
502
+ EOF
503
503
 
504
504
  fail "#{args.target_dir} does not exist!" if not File.directory?(args.target_dir)
505
505
 
@@ -607,7 +607,7 @@ module Simp::Rake::Build
607
607
 
608
608
  if build_module
609
609
  unique_build = (get_cpu_limit != 1)
610
- sh %{rake pkg:rpm[#{chroot},unique_build,#{snapshot_release}]}
610
+ %x{rake pkg:rpm[#{chroot},unique_build,#{snapshot_release}]}
611
611
 
612
612
  # Glob all generated rpms, and add their metadata to a result array.
613
613
  pkginfo = Hash.new
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
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: 1.1.0
4
+ version: 1.1.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: 2016-03-10 00:00:00.000000000 Z
12
+ date: 2016-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler