-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openSUSE] replace legacy yum with dnf-yum. Fixes #2092
Yum has now long been superseded by dnf and given a recent suspected deprecation of legacy yum (which is python 2 based), and a missing yum package within Tumbleweed, if we move now to dnf-yum in both Leap15.x and Tumbleweed bases we further reduce our legacy dependencies. Includes: - Addresses a minor date output formatting difference to enable the proposed dependency change from yum/yum-changelog to dnf-yum/dnf-plugins-core. - Add legacy yum/dnf-yum distro specific yum changelog options. - Re-use existing distro.id() call to avoid re-calling. - Generalise rockstor package changelog parser - dnf-yum compatibility. - Include conditional to account for further variation in 'rockstor' version line parsing: dnf-yum --changelog has a different output than legacy yum --changelog so we adapt accordingly. - User faster re.match (over re.search) as our new target allows this. Previously the search target was mid line, requiring the significantly slower re.search. - Correct / update prior pkg_mgmt.py comments - Unit test rpm_build_info() - pky_mgmt to ensure dnf-yum compatibility. - Unit test pkg_latest_available() in pkg_mgmt.py. - Abstract pkg_latest_available() function used when no changelog found to improves rockstor_pkg_update_check() code testability. - Also removes non architecture aware component of abstracted function.
- Loading branch information
Showing
2 changed files
with
374 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.