Project

Profile

Help

Story #1912

closed

Add MD5 checksum element to data type elements in repomd.xml file

Added by robnester almost 8 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
High
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

As part of downstream content validation testing, it would be beneficial to be able to have the MD5 checksum of generated metadata files present in their respective entries within the repomd.xml file.

Currently there are values for checksum and open-checksum. While these checksums algorithms can be set to sha1/sha256, I'd like to see another value (I have no naming requirements) which holds an MD5 checksum of the file. See the following examples:

An example from repomd.xml as it is today:

<data type="other_db">
  <location href="repodata/25cd804ef053f6b3693a8ec0e6dc711db7af4bd4-other.sqlite.bz2"/>
  <checksum type="sha">25cd804ef053f6b3693a8ec0e6dc711db7af4bd4</checksum>
  <timestamp>1462981265.0</timestamp>
  <size>5849902</size>
  <open-size>50198528</open-size>
  <open-checksum type="sha">3da280326cb00e28d14ffd40a6c752a9c91867c7</open-checksum>
  <database_version>10</database_version>
</data>

and an example of what i'd like to see, note I'm calling the desired value "validation-checksum" with a type of MD5 here, but the value name can be arbitrary in my opinion.

<data type="other_db">
  <location href="repodata/25cd804ef053f6b3693a8ec0e6dc711db7af4bd4-other.sqlite.bz2"/>
  <checksum type="sha">25cd804ef053f6b3693a8ec0e6dc711db7af4bd4</checksum>
  <validation-checksum type="md5">(md5 checksum here)</checksum>
  <timestamp>1462981265.0</timestamp>
  <size>5849902</size>
  <open-size>50198528</open-size>
  <open-checksum type="sha">3da280326cb00e28d14ffd40a6c752a9c91867c7</open-checksum>
  <database_version>10</database_version>
</data>

Also available in: Atom PDF