Commit Graph

1500 Commits

Author SHA1 Message Date
Jordan Sissel 451341dff4 Version bump 2014-10-25 21:54:31 +00:00
Jordan Sissel 3239c5cd07 Update changelog 2014-10-25 21:54:06 +00:00
Jordan Sissel 8360d174dc Fix a whole bunch of Ruby 1.8.7 bugs
There are still 4 test failures:

* rspec ./spec/fpm/package/rpm_spec.rb:297 # FPM::Package::RPM#output package attributes should have the correct 'after_target_uninstall' trigger script
* rspec ./spec/fpm/package/rpm_spec.rb:288 # FPM::Package::RPM#output package attributes should have the correct 'before_uninstall' trigger script
* rspec ./spec/fpm/package/rpm_spec.rb:279 # FPM::Package::RPM#output package attributes should have the correct 'after_install' trigger script
* rspec ./spec/fpm/package/rpm_spec.rb:270 # FPM::Package::RPM#output package attributes should have the correct 'before_install' trigger script
2014-10-25 21:23:49 +00:00
Josh Dolitsky 1045bf962c adding --rpm-init option (fix) 2014-10-25 05:41:42 +00:00
Josh Dolitsky d540e275ec adding --rpm-init option 2014-10-25 05:41:42 +00:00
Jordan Sissel 41b4041210 Add npm specs 2014-10-25 05:41:28 +00:00
Maxime Caumartin 4452a2395c Add input and output rpm trigger support
This adds several rpm-specific flags:

--before-install
--after-install
--before-uninstall
--after-target-uninstall

Fixes #626 (merged by hand)
2014-10-25 05:36:37 +00:00
Jordan Sissel 81486255d7 Move from @logger ivar to logger method.
Tests pass. Hope is all we have. And hugs.
2014-10-25 05:28:16 +00:00
Jordan Sissel c453f6a445 Merge pull request #776 from Tapjoy/feature/sh_template_enhancements
Enhancements to sh template
2014-10-24 22:27:26 -07:00
Jordan Sissel b98e6a9f9b Merge pull request #760 from malinoff/patch-1
Missing space in help
2014-10-24 22:19:27 -07:00
Jordan Sissel 310c39f167 Merge pull request #765 from shrijeet/master
Stat the link itself instead of file it refers to
2014-10-24 22:18:11 -07:00
Jordan Sissel fe65edcf77 npm: Set :prefix default to `npm prefix -g`
Fixes #758 (I hope)
2014-10-25 05:12:23 +00:00
Jordan Sissel 67086ba56c Start moving towards `logger` method instead so it's easier to handle
initialization.
2014-10-25 05:12:06 +00:00
Jordan Sissel a588dfe830 Somehow the templates were syntactically invalid? I dunno. Fixed. 2014-10-25 04:51:53 +00:00
Jordan Sissel 6ba1d2aa32 Fix typo from previous commit 2014-10-25 04:51:53 +00:00
Grantlyk 12d31ae5c7 Adding validation to stop debian users entering names with spaces
Fixes #779
2014-10-25 04:51:53 +00:00
Jordan Sissel 045e73ebcd deb: Always provide a "changes" file
lintian in Ubuntu 14.04 now errors when a file
/usr/share/NAME/changelog.Debian.gz doesn't exist.

In the spirit of respecting lintian's meaningful errors, this commit
fixes that error.

The new behavior is that a changelog file is *always* provided. If the
--deb-changelog flag is not given, then fpm will produce a default one
based on the package being built in hope that it satisfies lintian.

With this commit, the lintian rspec test passes on Ubuntu 14.04.

Fixes #784
2014-10-25 04:07:46 +00:00
Jordan Sissel d03fae0b07 Don't follow symlinks when copying files.
Added test coverage to ensure a broken symlink doesn't throw a ENOENT
error. The test was written first, and failed, but now passes with the
fix to the dir package.

Fixes #658
2014-10-25 01:39:42 +00:00
Jordan Sissel 37ae6149c6 Merge pull request #787 from djhaskin987/feature/786
Check first for Build.PL, then for Makefile.PL
2014-10-16 11:48:46 -07:00
Jordan Sissel bed690c035 Merge pull request #772 from djhaskin987/feature/661
Feature/661
2014-10-16 11:47:06 -07:00
Daniel Jay Haskin a93ca9bb24 Check first for Build.PL, then for Makefile.PL 2014-10-16 10:00:31 -06:00
Jordan Sissel ff00426a86 Add --log=xxx support
Supported log levels: error, warn, info, debug.

--verbose is the same as --log=info
--debug is the same as --log=debug
--log=warn is the default

Requested by mattgreenrocks on irc.
2014-10-15 18:29:42 +00:00
Jordan Sissel 7c9ba58280 Merge pull request #778 from nbrownus/master
Allow removal of Vendor field for deb

This can be done in the CLI by setting --vendor to an empty string. For example `--vendor ""`

The default behavior "Vendor: none" still remains.
2014-10-07 11:58:41 -07:00
Nate Brown 15939fe4f8 Allow removal of Vendor field for deb 2014-10-07 17:55:57 +00:00
Jordan Sissel e84cfb5f08 Merge pull request #763 from mlafeldt/strip_perllocal_pod
CPAN: Fix stripping of perllocal.pod if cpan_perl_lib_path is set
2014-10-06 16:11:35 -07:00
Chris Gerber 2a9155cbc1 Enhancements to sh template
This PR includes two significant changes:

* If this version of the code is already in current:
  * If not forced, do not install the code
  * If forced, rename the old directory and write out a new one

* Ignore functions in environment when saving .install-metadata, due to an issue with FPM 1.25.29-31 and Bash 4.3.27
2014-10-03 14:39:56 -04:00
Daniel Haskin 4f466939e9 Merge into scriptmap in the name of elegance 2014-09-19 07:23:15 -06:00
Daniel Haskin 3202242f9f Pass other scripts through 2014-09-19 07:10:51 -06:00
Daniel Haskin 95f0a9d2cd Grammar, contributions 2014-09-19 06:53:41 -06:00
Jordan Sissel 845fea91f1 Merge pull request #694 from vStone/bugfix/fix-python-tests-python3
Fixes 2 python issues within the tests
2014-09-18 10:44:35 -07:00
Daniel Haskin ba4160942f Add debian upgrade functionality 2014-09-18 07:24:37 -06:00
Daniel Haskin 50a2431818 Complete first hack at RPM and options 2014-09-15 07:08:34 -06:00
Daniel Haskin 6006e08394 Add help page first. 2014-09-11 18:08:46 -06:00
Shrijeet Paliwal 2298dd0cfc Stat the link itself instead of file it refers to
If path is a symbolic link and target doesn't exist, we may incorrectly through
file not found exception. This changes fixes the issue by using File.lstat to
stat the path.
2014-09-03 21:50:48 -07:00
Mathias Lafeldt 8b9656b982 CPAN: Fix stripping of perllocal.pod if cpan_perl_lib_path is set
For example, if cpan_perl_lib_path is set to "/usr/share/perl5", all
packages created with fpm will contain this file:

    /usr/share/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod

The current code only works if cpan_perl_lib_path is undefined.

Also see #443 and #510.
2014-09-03 17:07:59 +02:00
Dmitry Malinovsky 339d43de59 Missing space in help
```
    --no-depends                  Do not list any dependencies in this package (default: false)
    --no-auto-depends             Do not list any dependencies in thispackage automatically (default: false)
```
2014-08-22 12:17:27 +07:00
Jordan Sissel 70a9e10b86 Merge pull request #746 from Grantlyk/readme-bundleinstaller-fixes
Adding install info to readme for Mac OS 10.9 Users
2014-08-05 14:53:13 -07:00
Grantlyk a1cbabd6a2 Adding install info to readme for Mac OS 10.9 Users 2014-08-05 16:20:01 +01:00
Jordan Sissel da1d625270 Raise a hopefully-informative error if cpan author data is unexpected. 2014-08-01 05:22:20 +00:00
Jordan Sissel cb698c59a8 Merge pull request #744 from lnwdr/cpan-author-check
Added type checks for cpan authors
2014-07-30 09:43:50 -07:00
Leon Weidauer d052175948 Added type checks for cpan authors 2014-07-30 18:20:56 +02:00
Jordan Sissel e5b03b69f5 version bump 2014-07-25 14:40:27 +00:00
Jordan Sissel 8922af9bc7 Update changelog 2014-07-25 14:40:10 +00:00
Jordan Sissel f753e16d73 Fix typo in test that was causing it to fail. 2014-07-25 13:43:43 +00:00
Jordan Sissel 5d491a2d57 Ignore cabin subscriptions during testing
This prevents the command lib from subscribing to stdout and causing
warnings to show up during tests.
2014-07-24 19:24:28 +00:00
Jordan Sissel 7aed7e8c23 Merge pull request #688 from vStone/bugfix/fix_version_bins_with_no_bins
Fixes an issue where gem-version-bins is enabled but there are no binaries
2014-07-24 12:06:07 -07:00
Jordan Sissel 33e1cc4477 Skip if plugin not defined or the directory is empty 2014-07-24 18:49:06 +00:00
Jordan Sissel acb942e264 Merge pull request #695 from dwb/triggers
dpkg arbitary meta files and triggers
2014-07-24 11:36:55 -07:00
Jordan Sissel c4795096b0 Merge pull request #696 from vStone/bugfix/debian-control-file-permissions
Bugfix/debian control file permissions
2014-07-24 11:29:55 -07:00
Jordan Sissel 79fdc77d15 Merge pull request #708 from brimstone/patch-1
Cleaned up description for --workdir
2014-07-24 11:28:45 -07:00