Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/gnu/lister.py
Show All 26 Lines | class GNULister(SimpleLister): | ||||
def task_dict(self, origin_type, origin_url, **kwargs): | def task_dict(self, origin_type, origin_url, **kwargs): | ||||
""" | """ | ||||
Return task format dict | Return task format dict | ||||
This is overridden from the lister_base as more information is | This is overridden from the lister_base as more information is | ||||
needed for the ingestion task creation. | needed for the ingestion task creation. | ||||
""" | """ | ||||
return utils.create_task_dict( | return utils.create_task_dict( | ||||
'load-%s' % origin_type, 'recurring', kwargs.get('name'), | 'load-%s' % origin_type, kwargs.get('policy', 'recurring'), | ||||
kwargs.get('name'), | |||||
origin_url, tarballs=self.tarballs[kwargs.get('name')]) | origin_url, tarballs=self.tarballs[kwargs.get('name')]) | ||||
def get_file(self): | def get_file(self): | ||||
''' | ''' | ||||
Download and unzip tree.json.gz file and returns its content | Download and unzip tree.json.gz file and returns its content | ||||
in JSON format | in JSON format | ||||
Returns | Returns | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |