pkgbuild: add get_filename(arch)
This commit is contained in:
parent
fb4a12c464
commit
f2ccf06c5b
1 changed files with 7 additions and 0 deletions
|
@ -128,6 +128,13 @@ class Pkgbuild(PackageInfo):
|
|||
def refresh_sources(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
def get_filename(self, arch: Arch):
|
||||
if not self.version:
|
||||
self.update_version()
|
||||
if self.arches[0] == 'any':
|
||||
arch = 'any'
|
||||
return f'{self.name}-{self.version}-{arch}.pkg.tar.zst'
|
||||
|
||||
|
||||
class Pkgbase(Pkgbuild):
|
||||
subpackages: list[SubPkgbuild]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue