Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/debian/lister.py
# Copyright (C) 2017-2019 The Software Heritage developers | # Copyright (C) 2017-2019 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import bz2 | import bz2 | ||||
from collections import defaultdict | from collections import defaultdict | ||||
import datetime | import datetime | ||||
import gzip | import gzip | ||||
import lzma | import lzma | ||||
import logging | import logging | ||||
from debian.deb822 import Sources | from debian.deb822 import Sources | ||||
from sqlalchemy.orm import joinedload, load_only | from sqlalchemy.orm import joinedload, load_only | ||||
from sqlalchemy.schema import CreateTable, DropTable | from sqlalchemy.schema import CreateTable, DropTable | ||||
from swh.storage.schemata.distribution import ( | from swh.lister.debian.models import ( | ||||
AreaSnapshot, Distribution, DistributionSnapshot, Package, | AreaSnapshot, Distribution, DistributionSnapshot, Package, | ||||
TempPackage, | TempPackage, | ||||
) | ) | ||||
from swh.lister.core.lister_base import ListerBase, FetchError | from swh.lister.core.lister_base import ListerBase, FetchError | ||||
from swh.lister.core.lister_transports import ListerHttpTransport | from swh.lister.core.lister_transports import ListerHttpTransport | ||||
decompressors = { | decompressors = { | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |