Permalink
Browse files

Removed warnings: CONSTANT already defined.

  • Loading branch information...
1 parent 476f6d1 commit 7333fcb8bb834829fd5aa58b26c0e7e04e299493 @mv mv committed Apr 4, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/fpm/package/deb.rb
  2. +2 −2 lib/fpm/package/rpm.rb
@@ -17,7 +17,7 @@ class FPM::Package::Deb < FPM::Package
:after_install => "postinst",
:before_remove => "prerm",
:after_remove => "postrm",
- }
+ } unless defined?(SCRIPT_MAP)
option "--ignore-iteration-in-dependencies", :flag,
"For '=' (equal) dependencies, allow iterations on the specified " \
@@ -21,13 +21,13 @@ class FPM::Package::RPM < FPM::Package
"sha256" => 8,
"sha384" => 9,
"sha512" => 10
- }
+ } unless defined?(DIGEST_ALGORITHM_MAP)
COMPRESSION_MAP = {
"xz" => "w2.xzdio",
"gzip" => "w9.gzdio",
"bzip2" => "w9.bzdio"
- }
+ } unless defined?(COMPRESSION_MAP)
option "--rpmbuild-define", "DEFINITION",

0 comments on commit 7333fcb

Please sign in to comment.