Skip to content

Commit

Permalink
Merge pull request #1638 from Pairman/main
Browse files Browse the repository at this point in the history
Fix typo in rpm-build package name
  • Loading branch information
freakboy3742 committed Feb 9, 2024
2 parents 6998e6d + f25c22a commit 3849c1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/1638.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When Briefcase can't find ``rpmbuild` on an RPM-based system, the message giving install instructions now uses the correct package name.
2 changes: 1 addition & 1 deletion src/briefcase/platforms/linux/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def _verify_packaging_tools(self, app: AppConfig):
"""Verify that the local environment contains the packaging tools."""
tool_name, executable_name, package_name = {
"deb": ("dpkg", "dpkg-deb", "dpkg-dev"),
"rpm": ("rpm-build", "rpmbuild", "rpmbuild"),
"rpm": ("rpm-build", "rpmbuild", "rpm-build"),
"pkg": ("makepkg", "makepkg", "pacman"),
}[app.packaging_format]

Expand Down
2 changes: 1 addition & 1 deletion tests/platforms/linux/system/test_package__rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_verify_no_docker(monkeypatch, package_command, first_app_rpm):
[
(
"rhel",
"Can't find the rpm-build tools. Try running `sudo dnf install rpmbuild`.",
"Can't find the rpm-build tools. Try running `sudo dnf install rpm-build`.",
),
(None, "Can't find the rpmbuild tool. Install this first to package the rpm."),
],
Expand Down

0 comments on commit 3849c1c

Please sign in to comment.