base: add implementation for adding origins

This commit is contained in:
Nicolas Dandrimont 2016-10-19 16:53:32 +02:00
parent bc05a0f0a7
commit 9ba8fedc4c
3 changed files with 4 additions and 4 deletions

3
debian/control vendored
View file

@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 9),
python3-setuptools,
python3-swh.core,
python3-swh.scheduler (>= 0.0.10~),
python3-swh.storage,
python3-swh.storage (>= 0.0.69~),
python3-vcversioner
Standards-Version: 3.9.6
Homepage: https://forge.softwareheritage.org/diffusion/DLSGH/
@ -18,6 +18,7 @@ Homepage: https://forge.softwareheritage.org/diffusion/DLSGH/
Package: python3-swh.lister.github
Architecture: all
Depends: python3-swh.scheduler (>= 0.0.10~),
python3-swh.storage (>= 0.0.69~),
${misc:Depends},
${python3:Depends}
Description: Software Heritage GitHub lister

View file

@ -2,5 +2,5 @@ requests
SQLAlchemy
swh.core
swh.storage
swh.storage (>= 0.0.69)
swh.scheduler (>= 0.0.10)

View file

@ -38,8 +38,7 @@ class SWHLister(config.SWHConfig):
Returns:
a list of origin ids
"""
raise NotImplementedError
return self.storage.origin_add(origins)
def create_tasks(self, tasks):
"""Create the tasks specified, and return their ids.