Skip to content

Commit

Permalink
Didn't realize that the requires line could include version restrictions
Browse files Browse the repository at this point in the history
Signed-off-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
Amndeep7 committed Jun 18, 2024
1 parent 6ace070 commit 1efb3a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions saf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BuildRoot: %{buildroot}
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch

Requires: nodejs
Requires: nodejs > 18.18.2

AutoReqProv: no

Expand Down Expand Up @@ -44,8 +44,3 @@ rm -rf %{buildroot}
/opt/saf
%attr(755, -, -) /opt/saf/bin/saf
/usr/bin/saf

%post
if { echo "$(node -v)"; echo "v18.18.2"; } | sort --version-sort --check > /dev/null 2>&1; then
echo "WARNING: MITRE SAF CLI requires Node version greater than 18.18.x" 1>&2
fi

0 comments on commit 1efb3a3

Please sign in to comment.