Skip to content

Design a PackageInfo DataClass to be returned from list_packages function. #4527

@vaibhavdaren

Description

@vaibhavdaren

List Packages should return a list of PackageInfo Objects, Instead of list of strings.

def list_packages(self, repository: "Repository") -> list[str]:
"""
List packages available in the specified repository.
:param repository: The repository to query.
:returns: A list of package names available in the repository.
"""
script = self.engine.list_packages(repository)
output = self.guest.execute(script)
stdout = output.stdout
if stdout is None:
raise GeneralError("Repository query provided no output")

Metadata

Metadata

Assignees

Labels

area | package managersChanges related to implementations of package managersplugin | artifactRelated to the `prepare/artifact` plugin.

Type

Projects

Status

done

Status

done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions