Skip to content

Commit

Permalink
autodetect correct extension for filename
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Nov 26, 2024
1 parent 7bad39d commit 79a2760
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion conda_build/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,12 @@ def dist(self):
return f"{self.name()}-{self.version()}-{self.build_id()}"

def pkg_fn(self):
return f"{self.dist()}.tar.bz2"
ext = (
CondaPkgFormat.V2.ext
if self.config.conda_pkg_format == CondaPkgFormat.V2
else CondaPkgFormat.V1.ext
)
return f"{self.dist()}{ext}"

def is_app(self):
return bool(self.get_value("app/entry"))
Expand Down

0 comments on commit 79a2760

Please sign in to comment.