oamg / convert2rhel

A tool to automate converting Oracle/CentOS/Scientific/Rocky/Alma Linux to Red Hat Enterprise Linux
GNU General Public License v3.0
103 stars 82 forks source link

[RHELC-774] Add exclude setopt to remaining repoquery calls #1255

Open r0x0d opened 2 months ago

r0x0d commented 2 months ago

We need to exclude any packages set in the /etc/yum.conf set by the user so we can make sure that when we run repoquery, we are really gathering all the data we want from the command. This patch introduces the overridable --setopt=exclude= in the remaining repoquery calls.

Jira Issues:

Checklist

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.83%. Comparing base (3b5eb16) to head (80738b5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1255 +/- ## ======================================= Coverage 95.83% 95.83% ======================================= Files 55 55 Lines 4756 4757 +1 Branches 836 836 ======================================= + Hits 4558 4559 +1 Misses 112 112 Partials 86 86 ``` | [Flag](https://app.codecov.io/gh/oamg/convert2rhel/pull/1255/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | Coverage Δ | | |---|---|---| | [centos-linux-7](https://app.codecov.io/gh/oamg/convert2rhel/pull/1255/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | `91.00% <75.00%> (-0.02%)` | :arrow_down: | | [centos-linux-8](https://app.codecov.io/gh/oamg/convert2rhel/pull/1255/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | `91.95% <100.00%> (+<0.01%)` | :arrow_up: | | [centos-linux-9](https://app.codecov.io/gh/oamg/convert2rhel/pull/1255/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg) | `92.00% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=oamg#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

r0x0d commented 2 months ago

missing the dnf/yum cli calls. Will update the PR.

has-bot commented 1 month ago

/packit test --labels tier0


Comment generated by an automation.

Log | Bot Usage
r0x0d commented 1 month ago

/packit test --labels tier0

hosekadam commented 1 month ago

/packit test --labels tier0

r0x0d commented 3 weeks ago

/packit test --labels tier0