Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/debian/loader.py
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | class DebianFileMetadata: | ||||
md5sum = attr.ib(type=str) | md5sum = attr.ib(type=str) | ||||
name = attr.ib(type=str) | name = attr.ib(type=str) | ||||
"""Filename""" | """Filename""" | ||||
sha256 = attr.ib(type=str) | sha256 = attr.ib(type=str) | ||||
size = attr.ib(type=int) | size = attr.ib(type=int) | ||||
uri = attr.ib(type=str) | uri = attr.ib(type=str) | ||||
"""URL of this specific file""" | """URL of this specific file""" | ||||
# Some of the DSC files imported in swh apparently had a Checksums-SHA512 | |||||
# field which got recorded in the archive. Current versions of dpkg-source | |||||
# don't seem to generate them, but keep the field available for | |||||
# future-proofing. | |||||
sha512 = attr.ib(type=str, default="") | |||||
@attr.s | @attr.s | ||||
class DebianPackageChangelog: | class DebianPackageChangelog: | ||||
person = attr.ib(type=Dict[str, str]) | person = attr.ib(type=Dict[str, str]) | ||||
"""A dict with fields like, model.Person, except they are str instead | """A dict with fields like, model.Person, except they are str instead | ||||
of bytes, and 'email' is optional.""" | of bytes, and 'email' is optional.""" | ||||
date = attr.ib(type=str) | date = attr.ib(type=str) | ||||
"""Date of the changelog entry.""" | """Date of the changelog entry.""" | ||||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |