mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-15 08:36:13 +01:00
29 lines
563 B
Python
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)
|