Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Don't fart if an internal API user doesn't specify a compression type for Debian packages. #242

Merged
merged 2 commits into from Jul 30, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
View
@@ -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, ".")