View Issue Details

IDProjectCategoryView StatusLast Update
0017831websitewebsitepublic2020-11-12 16:01 
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0017831: Missing Epoch on "import" commits on makes it extremely difficult to reliably find the latest version
DescriptionI'm trying to write a script to retrieve the source for the latest version of an RPM from - basically `yumdownloader --source` but using git repos instead of yum repos. Unfortunately, reliably identifying the latest version is proving to be quite challenging.

In each RPM repo on, a single branch is used for each major release (eg. "c8" for CentOS 8.*), and commits for all minor releases (eg. CentOS 8.1 and 8.2) are mixed together in the same branch. Because of this, and the fact that multiple versions of the same RPM may be maintained for different minor releases simultaneously/asynchronously, the latest commit in a branch does not reliably correspond with the latest version of the RPM.
For example, in : imported java-11-openjdk-
before imported java-11-openjdk-
and then no further versions were imported for a few months after that.

To handle this, I currently parse the version number out of each "import" commit message, then use rpmdev-vercmp to compare the version numbers and identify the latest version number. However, since the version numbers in the "import" commit messages (and associated tags) do not include the Epoch, this falls apart for any RPMs that have changed their Epoch. There doesn't appear to be any way to rectify that problem short of extracting and parsing the spec file from every "import" commit.

Could the scripts that generate these "import" commit messages and associated tags be updated to include the Epoch in the version number to fix this problem?
TagsNo tags attached.




2020-11-05 08:18

manager   ~0037851

Unfortunately probably there is nothing the people from the CentOS project can do for you because the git push process is 100% under the control of RedHat people. CentOS is just a consumer of the content originated from RH.

2020-11-12 16:01

reporter   ~0037878

I've opened a ticket with RedHat. I will keep this ticket updated with status.

Issue History

Date Modified Username Field Change
2020-11-04 22:15 New Issue
2020-11-05 08:18 ManuelWolfshant Note Added: 0037851
2020-11-12 16:01 Note Added: 0037878