Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #242 from mblair/master

Don't fart if an internal API user doesn't specify a compression type for Debian packages.
  • Loading branch information...
commit 3c44b0edc44ba2394749a25bd0185a8fda3d9acf 2 parents 8db8810 + 0ecf6f9
@jordansissel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/fpm/package/deb.rb
View
6 lib/fpm/package/deb.rb
@@ -209,7 +209,7 @@ def extract_files(package)
datatar = "data.tar.xz"
compression = "-J"
else
- raise InvalidPackageConfiguration,
+ raise FPM::InvalidPackageConfiguration,
"Unknown compression type '#{self.attributes[:deb_compression]}' "
"in deb source package #{package}"
end
@@ -230,7 +230,7 @@ def output(output_path)
# Tar up the staging_path into data.tar.{compression type}
case self.attributes[:deb_compression]
- when "gzip"
+ when "gzip", nil
datatar = build_path("data.tar.gz")
compression = "-z"
when "bzip2"
@@ -240,7 +240,7 @@ def output(output_path)
datatar = build_path("data.tar.xz")
compression = "-J"
else
- raise InvalidPackageConfiguration,
+ raise FPM::InvalidPackageConfiguration,
"Unknown compression type '#{self.attributes[:deb_compression]}'"
end
safesystem(tar_cmd, "-C", staging_path, compression, "-cf", datatar, ".")
Please sign in to comment.
Something went wrong with that request. Please try again.