Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/api/private/deposit_read.py
Show All 13 Lines | |||||
from swh.core import tarball | from swh.core import tarball | ||||
from swh.deposit.utils import NAMESPACES, normalize_date | from swh.deposit.utils import NAMESPACES, normalize_date | ||||
from swh.model.hashutil import hash_to_hex | from swh.model.hashutil import hash_to_hex | ||||
from swh.model.model import MetadataAuthorityType | from swh.model.model import MetadataAuthorityType | ||||
from swh.model.swhids import CoreSWHID | from swh.model.swhids import CoreSWHID | ||||
from . import APIPrivateView, DepositReadMixin | from . import APIPrivateView, DepositReadMixin | ||||
from ...config import ARCHIVE_TYPE, SWH_PERSON | from ...config import SWH_PERSON | ||||
from ...constants import ARCHIVE_TYPE | |||||
from ...models import Deposit | from ...models import Deposit | ||||
from ...utils import parse_xml | from ...utils import parse_xml | ||||
from ..common import APIGet | from ..common import APIGet | ||||
@contextmanager | @contextmanager | ||||
def aggregate_tarballs(extraction_dir, archive_paths): | def aggregate_tarballs(extraction_dir, archive_paths): | ||||
"""Aggregate multiple tarballs into one and returns this new archive's | """Aggregate multiple tarballs into one and returns this new archive's | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |