From 350d8a20df9edb0a4a912901555dd7abcb32b1aa Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Tue, 18 Oct 2022 15:22:36 +0000 Subject: [PATCH] rpm: avoid using barewords in comaprison The version of RPM in Rocky Linux 9 no longer allows string comparisons with barewords. Quote the arguments properly to make sure that the comparison works on Rocky Linux 9. --- rpm/SPECS/git-lfs.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/SPECS/git-lfs.spec b/rpm/SPECS/git-lfs.spec index e0a85253..faae19af 100644 --- a/rpm/SPECS/git-lfs.spec +++ b/rpm/SPECS/git-lfs.spec @@ -33,7 +33,7 @@ ln -s $(pwd) src/github.com/git-lfs/%{name} %endif pushd src/github.com/git-lfs/%{name} - %if %{_arch} == i386 + %if "%{_arch}" == "i386" GOARCH=386 FORCE_LOCALIZE=true make %else GOARCH=amd64 FORCE_LOCALIZE=true make