1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-15 00:36:11 +01:00
github.com_openSUSE_osc/osc/obs_api/package_sources_file.py

29 lines
563 B
Python

from ..util.models import * # pylint: disable=wildcard-import,unused-wildcard-import
class PackageSourcesFile(XmlModel):
XML_TAG = "entry"
name: str = Field(
xml_attribute=True,
)
md5: str = Field(
xml_attribute=True,
)
mtime: int = Field(
xml_attribute=True,
)
size: int = Field(
xml_attribute=True,
)
skipped: Optional[bool] = Field(
xml_attribute=True,
)
def _get_cmp_data(self):
return (self.name, self.mtime, self.size, self.md5, self.skipped or False)