diff --git a/swh/lister/debian/models.py b/swh/lister/debian/models.py index 7ddb7a2..4dfc5ad 100644 --- a/swh/lister/debian/models.py +++ b/swh/lister/debian/models.py @@ -196,7 +196,7 @@ class DistributionSnapshot(SQLBase): 'arguments': { 'args': [], 'kwargs': { - 'origin': origin, + 'url': origin, 'date': self.date.isoformat(), 'packages': package_versions, }, diff --git a/swh/lister/debian/tests/test_lister.py b/swh/lister/debian/tests/test_lister.py index 450d84d..0b279c5 100644 --- a/swh/lister/debian/tests/test_lister.py +++ b/swh/lister/debian/tests/test_lister.py @@ -27,7 +27,7 @@ def test_lister_debian(lister_debian, datadir, requests_mock_datadir): # kwargs kwargs = row['arguments']['kwargs'] - assert set(kwargs.keys()) == {'origin', 'date', 'packages'} + assert set(kwargs.keys()) == {'url', 'date', 'packages'} logger.debug('kwargs: %s', kwargs)