View Issue Details

IDProjectCategoryView StatusLast Update
0017831websitewebsitepublic2020-11-12 16:01
Reporterredhatbugs@TopQuark.net 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0017831: Missing Epoch on "import" commits on git.centos.org 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 git.centos.org - 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 git.centos.org, 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 https://git.centos.org/rpms/java-11-openjdk/tree/c8 :
https://git.centos.org/rpms/java-11-openjdk/c/0b2558c84aff4c2c2fe0a0d3981b09ba93f312c5?branch=c8 imported java-11-openjdk-11.0.7.10-1.el8_1
before https://git.centos.org/rpms/java-11-openjdk/c/aa59cc3aacb503e3723eefd125b99c6c7681a253?branch=c8 imported java-11-openjdk-11.0.6.10-4.el8
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.

Activities

ManuelWolfshant

ManuelWolfshant

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.
redhatbugs@TopQuark.net

redhatbugs@TopQuark.net

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 redhatbugs@TopQuark.net New Issue
2020-11-05 08:18 ManuelWolfshant Note Added: 0037851
2020-11-12 16:01 redhatbugs@TopQuark.net Note Added: 0037878