We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89897fe commit 24d414cCopy full SHA for 24d414c
src/distribution.rs
@@ -59,13 +59,13 @@ impl FromStr for SDistType {
59
fn from_str(s: &str) -> Result<Self, Self::Err> {
60
let dist_type = match s {
61
"zip" => SDistType::Zip,
62
- "gz" => SDistType::GzTar,
+ "gz" | "tgz" => SDistType::GzTar,
63
#[cfg(feature = "deprecated-formats")]
64
"tar" => SDistType::Tar,
65
#[cfg(feature = "bzip2")]
66
- "bz2" => SDistType::BzTar,
+ "bz2" | "tbz" => SDistType::BzTar,
67
#[cfg(feature = "xz")]
68
- "xz" => SDistType::XzTar,
+ "txz" | "xz" => SDistType::XzTar,
69
_ => return Err(Error::UnknownDistributionType),
70
};
71
Ok(dist_type)
0 commit comments