Repository navigation
Conversation
The tool is named qmctl, so update the spec file to match the tool's name. Signed-off-by: Douglas Landgraf <dlandgra@redhat.com> (cherry picked from commit 600c6de)
Signed-off-by: Douglas Landgraf <dlandgra@redhat.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis release updates version and SELinux metadata and restructures the RPM controller subpackage as File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="rpm/qm.spec" line_range="100-101" />
<code_context>
Summary: QM service controller command line tool
Requires: %{name} = %{version}-%{release}
Requires: python3 >= 3.9
+Provides: %{name}-ctl = %{version}-%{release}
+Obsoletes: %{name}-ctl < %{version}-%{release}
-%description ctl
</code_context>
<issue_to_address>
**issue (broader_impact):** In copr builds, the compatibility `Provides` and `Obsoletes` omit the package epoch even though the spec assigns epoch 101 there. RPM therefore treats these relations as epoch 0, so the new `qmctl` package does not obsolete the existing epoch-101 `qm-ctl` package; upgrading leaves both packages installed and the transaction fails because they own the same files.
**Triggers:** When upgrading a copr installation containing the previous `qm-ctl` package.
**Suggested fix:** Include the effective epoch in both compatibility relations, using the packaging project's supported conditional-epoch syntax.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 1 finding to address first, and if the package rename or Provides/Obsoletes metadata is wrong, upgrades or dependency resolution could leave installations with the wrong package identity or make qmctl unavailable until the package is repaired. Reverting the change does not automatically restore already-installed RPM metadata, but the affected package state is bounded and repairable by reinstalling or rerunning the upgrade.
Blocking findings: rpm/qm.spec:101
| Provides: %{name}-ctl = %{version}-%{release} | ||
| Obsoletes: %{name}-ctl < %{version}-%{release} |
There was a problem hiding this comment.
issue (broader_impact): In copr builds, the compatibility Provides and Obsoletes omit the package epoch even though the spec assigns epoch 101 there. RPM therefore treats these relations as epoch 0, so the new qmctl package does not obsolete the existing epoch-101 qm-ctl package; upgrading leaves both packages installed and the transaction fails because they own the same files.
Triggers: When upgrading a copr installation containing the previous qm-ctl package.
Suggested fix: Include the effective epoch in both compatibility relations, using the packaging project's supported conditional-epoch syntax.
Summary by Sourcery
Prepare the 1.1.z release and rename the controller CLI RPM subpackage to qmctl with backward-compatible package metadata.
Enhancements:
Build: