Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/gnu/lister.py
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | class GNULister(SimpleLister): | ||||
def list_packages(self, response): | def list_packages(self, response): | ||||
"""List the actual gnu origins (package name) with their name, url and | """List the actual gnu origins (package name) with their name, url and | ||||
associated tarballs. | associated tarballs. | ||||
Args: | Args: | ||||
response: Unused | response: Unused | ||||
Returns: | Returns: | ||||
List of packages name, url, last modification time | List of packages name, url, last modification time:: | ||||
.. code-block:: python | |||||
[ | [ | ||||
{'name': '3dldf', | { | ||||
'name': '3dldf', | |||||
'url': 'https://ftp.gnu.org/gnu/3dldf/', | 'url': 'https://ftp.gnu.org/gnu/3dldf/', | ||||
'time_modified': '2003-12-09T20:43:20+00:00'}, | 'time_modified': '2003-12-09T20:43:20+00:00' | ||||
{'name': '8sync', | }, | ||||
{ | |||||
'name': '8sync', | |||||
'url': 'https://ftp.gnu.org/gnu/8sync/', | 'url': 'https://ftp.gnu.org/gnu/8sync/', | ||||
'time_modified': '2016-12-06T02:37:10+00:00'}, | 'time_modified': '2016-12-06T02:37:10+00:00' | ||||
}, | |||||
... | ... | ||||
] | ] | ||||
""" | """ | ||||
return list(self.gnu_tree.projects.values()) | return list(self.gnu_tree.projects.values()) | ||||
def get_model_from_repo(self, repo): | def get_model_from_repo(self, repo): | ||||
"""Transform from repository representation to model | """Transform from repository representation to model | ||||
Show All 11 Lines |