diff --git a/swh/lister/debian/lister.py b/swh/lister/debian/lister.py index db61aec..913971b 100644 --- a/swh/lister/debian/lister.py +++ b/swh/lister/debian/lister.py @@ -232,3 +232,5 @@ class DebianLister(SWHListerHttpTransport, SWHListerBase): self.create_tasks_for_snapshot(snapshot) self.db_session.commit() + + return True diff --git a/swh/lister/debian/tasks.py b/swh/lister/debian/tasks.py new file mode 100644 index 0000000..39aa6a2 --- /dev/null +++ b/swh/lister/debian/tasks.py @@ -0,0 +1,16 @@ +# Copyright (C) 2017 the Software Heritage developers +# License: GNU General Public License version 3, or any later version +# See top-level LICENSE file for more information + +from swh.lister.core.tasks import ListerTaskBase + +from .lister import DebianLister + + +class DebianListerTask(ListerTaskBase): + def new_lister(self): + return DebianLister() + + def run_task(self, distribution): + lister = self.new_lister() + return lister.run(distribution)