abrt / retrace-server

Application for remote coredump analysis
GNU General Public License v2.0
40 stars 30 forks source link

stats: Fix Releases counting by using wildcard at end and add el9 #477

Closed DaveWysochanskiRH closed 2 years ago

DaveWysochanskiRH commented 2 years ago

The stats database has a 'version' field which records the version of the package. The value of this field though may not end in the any of the strings listed in the plugins though. For the kernel, the 'arch' value is included at the end of the value. Also, for any z-stream package versions include the minor (Y) version after the major (X) version (for example, "el8_2" for a 8.2.0.z package). Fix these issues by using a wildcard at the end of the database query string.

In addition, add 'el9' to the 'rhel' and 'centos' plugins.

Signed-off-by: Dave Wysochanski dwysocha@redhat.com