simp-rake-helpers 3.1.1 → 3.1.2

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
  SHA1:
3
- metadata.gz: e87673678db1fcb3de3bc8d12177b038877c8ac7
4
- data.tar.gz: b7a1b15926479bd4e6f233cabb706424745dfa6a
3
+ metadata.gz: ec46ab6ca3ff2615f06d8552bc34c2fbf04b9119
4
+ data.tar.gz: 5a4dba95fa0eef1f1f62f7b76e158b7a4f15b8d9
5
5
  SHA512:
6
- metadata.gz: 9a8836e60d0f3c9dc8cbf8806e24757acc6b153cb45b5da607107a2d14cebbed26e7b13a4cbd0b13759997df40ad72d3fa05586b39c450da393035862219287b
7
- data.tar.gz: 4938147533bca2b46cda3f2997b38d415a172993e30716ff03f072a92225a126a8eef713b9283d59f1f60144bd2fedb0a89a3d209cc5b49139af179d036f05bc
6
+ metadata.gz: d210e9e63829deb0369e30570f4d66530aac76641f449a39c627a3dbc38ad85d3e7b1bf026ae47af9cb1fa21826f7405cc6f925d8dc3e7ce17af2569c4301317
7
+ data.tar.gz: cc5b83ad98dd7fdccd901643554ee85f659bc9b1fd5b669d22d2a3fa0922384072bd3a62286442227c9db1e4054f3377fcc7704b907ab7d89fe8471dce3e7a75
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 3.1.2 / 2016-12-02
2
+ * Look for the DVD directory in the distribution directories
3
+
1
4
  ### 3.1.1 / 2016-11-29
2
5
  * Fixed bug in legacy compatibility
3
6
 
@@ -61,7 +61,7 @@ module Simp::Rake::Build::Constants
61
61
 
62
62
  @run_dir = Dir.pwd
63
63
  @base_dir = base_dir
64
- @build_arch = ENV['buld_arch'] || %x{#{:facter} hardwaremodel 2>/dev/null}.chomp
64
+ @build_arch = ENV['SIMP_BUILD_arch'] || %x{#{:facter} hardwaremodel 2>/dev/null}.chomp
65
65
  @build_dir = File.join(@base_dir, 'build')
66
66
  @dvd_dir = File.join(@build_dir, 'DVD_Overlay')
67
67
  @target_dists = ['CentOS', 'RedHat']
@@ -16,6 +16,10 @@ module Simp::Rake::Build
16
16
  define_tasks
17
17
  end
18
18
 
19
+ def verbose
20
+ ENV.fetch('SIMP_ISO_verbose','no') == 'yes'
21
+ end
22
+
19
23
  def define_tasks
20
24
 
21
25
  File.umask(0007)
@@ -33,8 +37,6 @@ module Simp::Rake::Build
33
37
  # [:exclude_dirs] Array of directories to not remove any packages from
34
38
  # [:exclude_pkgs] Array of packages to not remove
35
39
  def prune_packages(from_dir,exclude_dirs,exclude_pkgs,mkrepo='createrepo -p',use_hack=true)
36
- verbose = ENV.fetch('SIMP_ISO_verbose','no') == 'yes'
37
-
38
40
  $stderr.puts "Starting to prune..."
39
41
  Dir.chdir(from_dir) do
40
42
  prune_count = 0
@@ -117,8 +119,6 @@ module Simp::Rake::Build
117
119
  end
118
120
  end
119
121
 
120
- verbose = ENV.fetch('SIMP_ISO_verbose','no') == 'yes'
121
-
122
122
  tarfiles = File.directory?(tarball) ?
123
123
  Dir.glob("#{tarball}/*.tar.gz") : [tarball]
124
124
  vermap = YAML::load_file( File.join( File.dirname(__FILE__), 'vermap.yaml'))
@@ -37,6 +37,7 @@ module Simp::Rake::Build
37
37
 
38
38
  if $simp6
39
39
  @build_dir = $simp6_build_dir
40
+ @dvd_src = File.join(@build_dir, File.basename(@dvd_src))
40
41
  end
41
42
 
42
43
  args.with_defaults(:method => 'tracking')
@@ -570,7 +571,7 @@ module Simp::Rake::Build
570
571
 
571
572
  File.read(key).each_line do |line|
572
573
  if line =~ /-----BEGIN PGP PUBLIC KEY BLOCK-----/
573
- sh %{#{rpm_cmd} --import #{key}}
574
+ %x{#{rpm_cmd} --import #{key}}
574
575
  break
575
576
  end
576
577
  end
@@ -886,7 +887,7 @@ protect=1
886
887
  #desc "Checks the environment for building the DVD tarball
887
888
  def check_dvd_env
888
889
  ["#{@dvd_src}/isolinux","#{@dvd_src}/ks"].each do |dir|
889
- File.directory?(dir)or raise "Environment not suitable: Unable to find directory '#{dir}'"
890
+ File.directory?(dir) or raise "Environment not suitable: Unable to find directory '#{dir}'"
890
891
  end
891
892
  end
892
893
 
@@ -21,6 +21,7 @@ module Simp::Rake::Build
21
21
  task :prep do
22
22
  if $simp6
23
23
  @build_dir = $simp6_build_dir
24
+ @dvd_src = File.join(@build_dir, File.basename(@dvd_src))
24
25
  end
25
26
 
26
27
  if $tarball_tgt
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '3.1.1'
5
+ VERSION = '3.1.2'
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: 3.1.1
4
+ version: 3.1.2
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-11-29 00:00:00.000000000 Z
12
+ date: 2016-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler