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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a77a3aacf9169d0736145ed029fd2ab6680aedb
4
- data.tar.gz: d1aa6823e333933f41f7e8acb26bcdac30882931
3
+ metadata.gz: 32e5de1dd66653d1c114a19665ffc0878615018c
4
+ data.tar.gz: 159971a71bca1eb9118aca6145e1e52eaa046495
5
5
  SHA512:
6
- metadata.gz: 52bc56b7772cd9503da659c7c9eab7f3a52ed2f5e9288cb91699cbb5fb9ee27bcfcfd12c1602f600f707aac032624354a227bf2fcc987ef575fa68672b8d3d72
7
- data.tar.gz: 7e7119f5906c4cc6cfa849ca0b4abd00a21c8dcdeac1cec6f1dbf58cc01fdc577f7fd7f6144dc88747048c3d5d1c5916c471930dbc2acad8e80675f3741a3acd
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)
@@ -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
@@ -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"
@@ -349,15 +349,17 @@ class FPM::Package::RPM < FPM::Package
349
349
  # #!#{tags[:preinprog]}
350
350
  # #{tags[prein]}
351
351
 
352
- val = tags[:triggerindex].zip(tags[:triggername],tags[:triggerflags],tags[:triggerversion]).group_by{ |x| x[0]}
353
- val = val.collect do |order,data|
354
- new_data = data.collect { |x| [ x[1], rpm.operator(x[2]), x[3]].join(" ").strip}.join(", ")
355
- [order, rpm_get_trigger_type(data[0][2]), new_data]
356
- end
357
- val.each do |order, attr,data|
358
- self.attributes[attr] = [] if self.attributes[attr].nil?
359
- scriptprog = (tags[:triggerscriptprog][order] == '/bin/sh') ? "" : "-p #{tags[:triggerscriptprog][order]}"
360
- self.attributes[attr] << [data,tags[:triggerscripts][order],scriptprog]
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?]
@@ -1,3 +1,3 @@
1
1
  module FPM
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
@@ -10,7 +10,7 @@ after_install() {
10
10
  <% end -%>
11
11
  }
12
12
 
13
- if [ "${1}" = "configure " -a -z "${2}" ]
13
+ if [ "${1}" = "configure" -a -z "${2}" ]
14
14
  then
15
15
  # "after install" here
16
16
  after_install
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json