| |
@@ -7,8 +7,8 @@
|
| |
import time
|
| |
import math
|
| |
import logging
|
| |
+ import hawkey
|
| |
|
| |
- from rpmUtils.miscutils import splitFilename
|
| |
from libtaskotron import check
|
| |
from libtaskotron import arch_utils
|
| |
|
| |
@@ -107,9 +107,10 @@
|
| |
stable_debuginfo_rpm.append(rpm)
|
| |
else:
|
| |
stable_rpms.append(rpm)
|
| |
- (n, v, r, e, a) = splitFilename(rpm)
|
| |
- rpm_details = {'rpm': rpm, 'name': n, 'version': v, 'release': r,
|
| |
- 'e': e, 'arch': a}
|
| |
+ nevra = hawkey.split_nevra(rpm)
|
| |
+ rpm_details = {'rpm': rpm, 'name': nevra.name,
|
| |
+ 'version': nevra.version, 'release': nevra.release,
|
| |
+ 'e': nevra.epoch, 'arch': nevra.arch}
|
| |
stable_rpms_detail.append(rpm_details)
|
| |
|
| |
'''
|
| |
@@ -125,9 +126,10 @@
|
| |
update_debuginfo_rpm.append(rpm)
|
| |
else:
|
| |
update_rpms.append(rpm)
|
| |
- (n, v, r, e, a) = splitFilename(rpm)
|
| |
- rpm_details = {'rpm': rpm, 'name': n, 'version': v,
|
| |
- 'release': r, 'e': e, 'arch': a}
|
| |
+ nevra = hawkey.split_nevra(rpm)
|
| |
+ rpm_details = {'rpm': rpm, 'name': nevra.name,
|
| |
+ 'version': nevra.version, 'release': nevra.release,
|
| |
+ 'e': nevra.epoch, 'arch': nevra.arch}
|
| |
update_rpms_detail.append(rpm_details)
|
| |
|
| |
# Prepare abipkgdiff command with required args
|
| |
yum is compatible with Python 2 only and is going to be dropped from Fedora 30 [0]
Also, I had to remove dnf-yum before being able to install yum on my F29 laptop.
I've tested these changes on some random packages, I hope I didn't miss anything important.
[0] https://fedoraproject.org/wiki/Changes/Deprecate_YUM_3