cran: Pass the package name to the loader
It will be used to create a synthetic release message that contains the package's name, like the Debian loader does.
This commit is contained in:
parent
24bc671679
commit
6243f800b4
2 changed files with 12 additions and 2 deletions
|
@ -64,7 +64,11 @@ class CRANLister(StatelessLister[PageType]):
|
|||
last_update=parse_packaged_date(package_info),
|
||||
extra_loader_arguments={
|
||||
"artifacts": [
|
||||
{"url": artifact_url, "version": package_info["Version"]}
|
||||
{
|
||||
"url": artifact_url,
|
||||
"version": package_info["Version"],
|
||||
"package": package_info["Package"],
|
||||
}
|
||||
]
|
||||
},
|
||||
)
|
||||
|
|
|
@ -99,7 +99,13 @@ def test_cran_lister_cran(datadir, swh_scheduler, mocker):
|
|||
assert len(filtered_origins) == 1
|
||||
|
||||
assert filtered_origins[0].extra_loader_arguments == {
|
||||
"artifacts": [{"url": artifact_url, "version": package_info["Version"]}]
|
||||
"artifacts": [
|
||||
{
|
||||
"url": artifact_url,
|
||||
"version": package_info["Version"],
|
||||
"package": package_info["Package"],
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
filtered_origins[0].last_update == parse_packaged_date(package_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue