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.

30 lines
694 B

10 months ago
from leapp.models import fields, Model
from leapp.topics import SystemInfoTopic
class RPM(Model):
topic = SystemInfoTopic
name = fields.String()
epoch = fields.String()
packager = fields.String()
version = fields.String()
release = fields.String()
arch = fields.String()
pgpsig = fields.String()
repository = fields.Nullable(fields.String())
module = fields.Nullable(fields.String())
stream = fields.Nullable(fields.String())
class InstalledRPM(Model):
topic = SystemInfoTopic
items = fields.List(fields.Model(RPM), default=[])
class InstalledRedHatSignedRPM(InstalledRPM):
pass
class InstalledUnsignedRPM(InstalledRPM):
pass