mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
cmds.secrets.lib.DistroContext.list_template_files(): List more
Default to Distro's idea of relevant packages if no packages are specified on the command line. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
655b17bfec
commit
32c3477102
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ class DistroContext(FilesContext):
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
async def list_template_files(self, pkg_names: Iterable[str]) -> list[str]:
|
async def list_template_files(self, pkg_names: Iterable[str]) -> list[str]:
|
||||||
|
if not pkg_names:
|
||||||
|
pkg_names = [p.name for p in await self.__distro.select()]
|
||||||
return await self.match_files(pkg_names, pattern=r'.*\.jw-tmpl$')
|
return await self.match_files(pkg_names, pattern=r'.*\.jw-tmpl$')
|
||||||
|
|
||||||
async def list_secret_paths(self, pkg_names: Iterable[str], ignore_missing: bool=False) -> list[str]:
|
async def list_secret_paths(self, pkg_names: Iterable[str], ignore_missing: bool=False) -> list[str]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue