fpm 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELIST +8 -0
- data/lib/fpm/command.rb +1 -1
- data/lib/fpm/package/npm.rb +3 -0
- data/lib/fpm/package/rpm.rb +11 -9
- data/lib/fpm/version.rb +1 -1
- data/templates/deb/postinst_upgrade.sh.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32e5de1dd66653d1c114a19665ffc0878615018c
|
4
|
+
data.tar.gz: 159971a71bca1eb9118aca6145e1e52eaa046495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e121f7c5fdd380c0e48255b5c8751c9aa1962be84611130995afc9f46e9122247ce0dd3faa8699cc5f3c68fe6a2c0b3a31934d9b32cd6eec9233e667d13376e5
|
7
|
+
data.tar.gz: 0a118ebc654aba513eb091d5640865d8314103b9c44b20ea6070f6c6de7d92d8001fcf2b6fa6671855960c15f766c6ef3bc11449acc7692946b812003b41c92d
|
data/CHANGELIST
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
1.3.3 (December 11, 2014)
|
2
|
+
- The fpm project now uses Contributor Covenant. You can read more about this on
|
3
|
+
the website: http://contributor-covenant.org/
|
4
|
+
- npm: Fix bug causing all `-s npm` attempts to fail due to a missing method.
|
5
|
+
This bug was introduced in 1.3.0. (#800, #806; Jordan Sissel)
|
6
|
+
- rpm: fix bug in rpm input causing a crash if the input rpm did not have any triggers
|
7
|
+
(#801, #802; Ted Elwartowski)
|
8
|
+
|
1
9
|
1.3.2 (November 4, 2014)
|
2
10
|
- deb: conversion from another deb will automatically use any changelog found in
|
3
11
|
the source deb (Jordan Sissel)
|
data/lib/fpm/command.rb
CHANGED
@@ -420,7 +420,7 @@ class FPM::Command < Clamp::Command
|
|
420
420
|
|
421
421
|
# Validate the package
|
422
422
|
if input.name.nil? or input.name.empty?
|
423
|
-
logger.fatal("No name given for this package (set name with, " \
|
423
|
+
logger.fatal("No name given for this package (set name with '-n', " \
|
424
424
|
"for example, '-n packagename')")
|
425
425
|
return 1
|
426
426
|
end
|
data/lib/fpm/package/npm.rb
CHANGED
@@ -4,6 +4,9 @@ require "fpm/util"
|
|
4
4
|
require "fileutils"
|
5
5
|
|
6
6
|
class FPM::Package::NPM < FPM::Package
|
7
|
+
class << self
|
8
|
+
include FPM::Util
|
9
|
+
end
|
7
10
|
# Flags '--foo' will be accessable as attributes[:npm_foo]
|
8
11
|
option "--bin", "NPM_EXECUTABLE",
|
9
12
|
"The path to the npm executable you wish to run.", :default => "npm"
|
data/lib/fpm/package/rpm.rb
CHANGED
@@ -349,15 +349,17 @@ class FPM::Package::RPM < FPM::Package
|
|
349
349
|
# #!#{tags[:preinprog]}
|
350
350
|
# #{tags[prein]}
|
351
351
|
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
352
|
+
if !tags[:triggerindex].nil?
|
353
|
+
val = tags[:triggerindex].zip(tags[:triggername],tags[:triggerflags],tags[:triggerversion]).group_by{ |x| x[0]}
|
354
|
+
val = val.collect do |order,data|
|
355
|
+
new_data = data.collect { |x| [ x[1], rpm.operator(x[2]), x[3]].join(" ").strip}.join(", ")
|
356
|
+
[order, rpm_get_trigger_type(data[0][2]), new_data]
|
357
|
+
end
|
358
|
+
val.each do |order, attr,data|
|
359
|
+
self.attributes[attr] = [] if self.attributes[attr].nil?
|
360
|
+
scriptprog = (tags[:triggerscriptprog][order] == '/bin/sh') ? "" : "-p #{tags[:triggerscriptprog][order]}"
|
361
|
+
self.attributes[attr] << [data,tags[:triggerscripts][order],scriptprog]
|
362
|
+
end
|
361
363
|
end
|
362
364
|
|
363
365
|
if !attributes[:no_auto_depends?]
|
data/lib/fpm/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|