simp-rake-helpers 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/simp/rake/build/auto.rb +17 -0
- data/lib/simp/rake/build/iso.rb +1 -1
- data/lib/simp/rake/build/pkg.rb +20 -20
- data/lib/simp/rake/helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDg3MWJlYTIwNDYzNDAzZWI4MTgxMDUyNWIzMmJhNjJhZGI0NzQ2ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDViOWQ1MjVjNGYyMmQ5ZGEyZTY4NjJmMmRiZGY3OTc3YTBhNTg5ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDhkNTEyMDUzMmUzMDY0NjVlOTM5NjRkNzNmY2NmOGEyODM3ZTE2YTRhZWQ0
|
10
|
+
MjI1MjgyMzhkNjIxNDI5NGNjOGNlNDkwMzUwMGU2NDMxNThjMDNiMThlN2My
|
11
|
+
MTA1MDI3NTQwNmIxYmM1ZGFiMmE2MWZhZWZmMTU3ZjQzZTk4NDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWU5NDZkZThiMmFkZTc1MTkyOTQ4MDFhNWYwMTZhZjA5OGEyYzI2N2UwYTQw
|
14
|
+
Y2Q1NWFiN2MzYThlODg2Yzc0ZjVjOTI3NjE1NmJlOGRjNGMyMmE0ZDFjZjVk
|
15
|
+
NzAyYTU3NTU2MjUxNWI1NzU4MTFhMzFiNTljNzM5Yzc3NGE5Njk=
|
data/lib/simp/rake/build/auto.rb
CHANGED
@@ -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")
|
data/lib/simp/rake/build/iso.rb
CHANGED
@@ -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(
|
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('-')
|
data/lib/simp/rake/build/pkg.rb
CHANGED
@@ -479,27 +479,27 @@ module Simp::Rake::Build
|
|
479
479
|
end
|
480
480
|
|
481
481
|
yum_conf_template = <<-EOF
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
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
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
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
|
-
|
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
|
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.
|
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-
|
12
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|