mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Merge pull request #46130 from areaxx/develop
[#46028] strictly separate extension with and without classifier
This commit is contained in:
commit
803138f5e5
@ -388,10 +388,11 @@ def _get_snapshot_version_metadata(artifactory_url, repository, group_id, artifa
|
|||||||
for snapshot_version in snapshot_versions:
|
for snapshot_version in snapshot_versions:
|
||||||
extension = snapshot_version.find('extension').text
|
extension = snapshot_version.find('extension').text
|
||||||
value = snapshot_version.find('value').text
|
value = snapshot_version.find('value').text
|
||||||
extension_version_dict[extension] = value
|
|
||||||
if snapshot_version.find('classifier') is not None:
|
if snapshot_version.find('classifier') is not None:
|
||||||
classifier = snapshot_version.find('classifier').text
|
classifier = snapshot_version.find('classifier').text
|
||||||
extension_version_dict[extension + ':' + classifier] = value
|
extension_version_dict[extension + ':' + classifier] = value
|
||||||
|
else:
|
||||||
|
extension_version_dict[extension] = value
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'snapshot_versions': extension_version_dict
|
'snapshot_versions': extension_version_dict
|
||||||
|
Loading…
Reference in New Issue
Block a user