squashfuse: remove url_for_version (#40862)

0.5.0 tarball now has the 'v' removed from the name
This commit is contained in:
Andrew W Elble 2023-11-03 10:34:25 -04:00 committed by GitHub
parent 0f1898c82a
commit 70171d6caf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ class Squashfuse(AutotoolsPackage):
"""squashfuse - Mount SquashFS archives using FUSE"""
homepage = "https://github.com/vasi/squashfuse"
url = "https://github.com/vasi/squashfuse/releases/download/0.1.104/squashfuse-0.1.104.tar.gz"
git = "https://github.com/vasi/squashfuse.git"
maintainers("haampie")
@ -51,14 +52,6 @@ class Squashfuse(AutotoolsPackage):
depends_on("automake", type="build", when="@master")
depends_on("libtool", type="build", when="@master")
def url_for_version(self, version):
url = "https://github.com/vasi/squashfuse/releases/download/"
if version == Version("0.5.0"):
url += "v{}/squashfuse-{}.tar.gz"
else:
url += "{}/squashfuse-{}.tar.gz"
return url.format(version, version)
def flag_handler(self, name, flags):
if name == "cflags" and "+min_size" in self.spec:
if "-Os" in self.compiler.opt_flags: