Skip to content

Commit 24d414c

Browse files
committed
add missing supported sdist extensions
1 parent 89897fe commit 24d414c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/distribution.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ impl FromStr for SDistType {
5959
fn from_str(s: &str) -> Result<Self, Self::Err> {
6060
let dist_type = match s {
6161
"zip" => SDistType::Zip,
62-
"gz" => SDistType::GzTar,
62+
"gz" | "tgz" => SDistType::GzTar,
6363
#[cfg(feature = "deprecated-formats")]
6464
"tar" => SDistType::Tar,
6565
#[cfg(feature = "bzip2")]
66-
"bz2" => SDistType::BzTar,
66+
"bz2" | "tbz" => SDistType::BzTar,
6767
#[cfg(feature = "xz")]
68-
"xz" => SDistType::XzTar,
68+
"txz" | "xz" => SDistType::XzTar,
6969
_ => return Err(Error::UnknownDistributionType),
7070
};
7171
Ok(dist_type)

0 commit comments

Comments
 (0)