Improve tag selection
oginstaller/pipeline/head There was a failure building this commit Details

working-installer
Nicolas Arenas 2024-11-20 20:13:19 +01:00
parent 237ccf6675
commit 858763c473
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ def get_git_tags():
print("Usando repositorio existente en", repo_path)
repo = Repo(repo_path)
tags = [tag.name for tag in repo.tags]
tags = [tag.name for tag in repo.tags if tag.name.startswith("opengnsys")]
return tags
except Exception as e:
print("Error al obtener los tags:", str(e))
@ -29,7 +29,7 @@ class ComponentSelectionForm(npyscreen.ActionForm):
self.components = self.add(npyscreen.TitleMultiSelect, max_height=6, name="Selecciona los componentes",
values=["ogCore", "ogGui", "ogDhcp", "ogBoot", "ogRepository"], scroll_exit=True)
self.tags = get_git_tags()
self.tag = self.add(npyscreen.TitleSelectOne, max_height=4, name="Selecciona el tag",
self.tag = self.add(npyscreen.TitleSelectOne, max_height=10, name="Selecciona el tag",
values=self.tags, scroll_exit=True)
def beforeEditing(self):