Skip to content

Commit 3849c1c

Browse files
authored
Merge pull request #1638 from Pairman/main
Fix typo in rpm-build package name
2 parents 6998e6d + f25c22a commit 3849c1c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changes/1638.bugfix.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
When Briefcase can't find ``rpmbuild` on an RPM-based system, the message giving install instructions now uses the correct package name.

src/briefcase/platforms/linux/system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def _verify_packaging_tools(self, app: AppConfig):
852852
"""Verify that the local environment contains the packaging tools."""
853853
tool_name, executable_name, package_name = {
854854
"deb": ("dpkg", "dpkg-deb", "dpkg-dev"),
855-
"rpm": ("rpm-build", "rpmbuild", "rpmbuild"),
855+
"rpm": ("rpm-build", "rpmbuild", "rpm-build"),
856856
"pkg": ("makepkg", "makepkg", "pacman"),
857857
}[app.packaging_format]
858858

tests/platforms/linux/system/test_package__rpm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_verify_no_docker(monkeypatch, package_command, first_app_rpm):
9999
[
100100
(
101101
"rhel",
102-
"Can't find the rpm-build tools. Try running `sudo dnf install rpmbuild`.",
102+
"Can't find the rpm-build tools. Try running `sudo dnf install rpm-build`.",
103103
),
104104
(None, "Can't find the rpmbuild tool. Install this first to package the rpm."),
105105
],

0 commit comments

Comments
 (0)