fpm 1.9.1 → 1.9.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: b9fb4eab81222c77d6790e9e06c8348744a020e7
4
- data.tar.gz: a29942bc9fcc9dcbe6bf0f4d1fbfa431d202eb2b
3
+ metadata.gz: 36ac3bbe61d011df86f9193d4d8de4bdaab376a3
4
+ data.tar.gz: 5d9cc9c3b76c1cf50e68dac2a0b243d78a2c20e7
5
5
  SHA512:
6
- metadata.gz: c97a69b63e17f684c7f481bda43e479d34a030e253b0a7294de356eaf1a35dc83b230deec5cf77270ff17756b98b8336016588be3ea41317ec354bd56649c1e8
7
- data.tar.gz: a3708d970c1d1b6d4d384893f7c596b5fad2ea6d4eb01e0baa42bec1de3bbb85286f3d5acab9823928cf00bb04f59c98247d307269f04fe01bae824f387e59cf
6
+ metadata.gz: a662f62f9a816e90b34211cb6599917acc56a048e1b6c329fcbacd72aa94e12076397bbf0b1447718a0912dc3ffa44c2318b865746fafcf00f1ca95d2eb9a702
7
+ data.tar.gz: '0049a012969a0b8aa2eec1e54607b198fb7092eb63bd2704b9dbca1c51bae4776bb97d343a12f65bb5d42810cc4cc126dc9a38320a70f0db9c7f5f578bc4fee6'
@@ -1,6 +1,11 @@
1
1
  Release Notes and Change Log
2
2
  ============================
3
3
 
4
+ 1.9.2 (July 29, 2017)
5
+ ^^^^^^^^^^^^^^^^^^^^^
6
+
7
+ * rpm: Fix `--config-files` handling (`#1390`_, `#1391`_; Jordan Sissel)
8
+
4
9
  1.9.1 (July 28, 2017) happy sysadmin day!
5
10
  ^^^^^^^^^^^^^^^^^^^^^
6
11
 
@@ -474,11 +474,18 @@ class FPM::Package::RPM < FPM::Package
474
474
 
475
475
  # include external config files
476
476
  (attributes[:config_files] or []).each do |conf|
477
- path = conf
478
- dest_conf = File.join(staging_path, path)
479
- FileUtils.mkdir_p(File.dirname(dest_conf))
480
- FileUtils.cp_r conf, dest_conf
481
- File.chmod(0755, dest_conf)
477
+ dest_conf = File.join(staging_path, conf)
478
+
479
+ if File.exist?(dest_conf)
480
+ logger.debug("Using --config-file from staging area", :path => conf)
481
+ elsif File.exist?(conf)
482
+ logger.info("Copying --config-file from local path", :path => conf)
483
+ FileUtils.mkdir_p(File.dirname(dest_conf))
484
+ FileUtils.cp_r conf, dest_conf
485
+ else
486
+ logger.error("Failed to find given --config-file", :path => conf)
487
+ raise "Could not find config file '#{conf}' in staging area or on host. This can happen if you specify `--config-file '#{conf}'` but this file does not exist in the source package and also does not exist in filesystem."
488
+ end
482
489
  end
483
490
 
484
491
  # scan all conf file paths for files and add them
@@ -1,3 +1,3 @@
1
1
  module FPM
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-28 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json