forked from msvsphere/leapp-repository
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
534 B
24 lines
534 B
from leapp.models import fields, Model
|
|
from leapp.topics import SystemInfoTopic
|
|
|
|
|
|
class UsedRepository(Model):
|
|
"""
|
|
Describe list of current packages installed from a specific repository
|
|
"""
|
|
|
|
topic = SystemInfoTopic
|
|
|
|
repository = fields.String()
|
|
packages = fields.List(fields.String(), default=[])
|
|
|
|
|
|
class UsedRepositories(Model):
|
|
"""
|
|
Describe list of used repositories in the current system
|
|
"""
|
|
|
|
topic = SystemInfoTopic
|
|
|
|
repositories = fields.List(fields.Model(UsedRepository), default=[])
|