Skip to content
Snippets Groups Projects
Verified Commit db4fe6bf authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.deposit.injection.loader: Sets loader's configuration as usual

parent 4024b486
No related branches found
Tags v0.0.18
No related merge requests found
......@@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 9),
python3-vcversioner,
python3-swh.core (>= 0.0.14~),
python3-swh.loader.core (>= 0.0.25~),
python3-swh.loader.tar (>= 0.0.27~),
python3-swh.loader.tar (>= 0.0.29~),
python3-swh.scheduler (>= 0.0.19~),
python3-django,
python3-click,
......@@ -25,7 +25,7 @@ Homepage: https://forge.softwareheritage.org/source/swh-deposit/
Package: python3-swh.deposit
Architecture: all
Depends: python3-swh.core (>= 0.0.14~),
python3-swh.loader.tar (>= 0.0.27~),
python3-swh.loader.tar (>= 0.0.29~),
python3-swh.scheduler (>= 0.0.19~),
${misc:Depends}, ${python3:Depends}
Description: Software Heritage Deposit Server
......@@ -34,7 +34,7 @@ Package: python3-swh.deposit.injection
Architecture: all
Depends: python3-swh.core (>= 0.0.14~),
python3-swh.loader.core (>= 0.0.25~),
python3-swh.loader.tar (>= 0.0.27~),
python3-swh.loader.tar (>= 0.0.29~),
python3-swh.scheduler (>= 0.0.19~),
python3-requests,
${misc:Depends}, ${python3:Depends}
......
swh.core >= 0.0.14
swh.loader.tar >= 0.0.27
swh.loader.tar >= 0.0.29
swh.loader.core >= 0.0.25
swh.scheduler >= 0.0.19
......@@ -30,8 +30,15 @@ class DepositLoader(loader.TarLoader):
- update the deposit's status accordingly
"""
CONFIG_BASE_FILENAME = 'loader/deposit'
ADDITIONAL_CONFIG = {
'extraction_dir': ('str', '/tmp/swh.deposit.injection/'),
}
def __init__(self, client=None):
super().__init__()
super().__init__(
logging_class='swh.deposit.injection.loader.DepositLoader')
self.client = client if client else DepositClient()
def load(self, *, archive_url, deposit_meta_url, deposit_update_url):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment