Skip to content

Commit

Permalink
fix for el9
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio committed Dec 31, 2024
1 parent 39d11e6 commit d22147c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/perl-cpan-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ jobs:
name: Check if package already exists
id: check-package-existance
run: |
package_info=$(dnf provides 'perl(${{ matrix.name }})' 2>&1 || true)
package_info=$(dnf provides 'perl(${{ matrix.name }})' 2>&1 | tr '[:upper:]' '[:lower:]' || true)
do_not_build="false"
if [[ ! $package_info =~ "No Matches found" ]]; then
if [[ ! $package_info =~ "no matches found" ]]; then
package_version=$(echo $package_info | grep -oP 'perl\(${{ matrix.name }}\) = \K[0-9]+\.[0-9]+')
if [[ -z "${{ matrix.version }}" || "$package_version" == "${{ matrix.version }}" ]]; then
echo "::warning::Package ${{ matrix.name }} already exists in the official ${{ matrix.distrib }} repository with the same version."
Expand Down

0 comments on commit d22147c

Please sign in to comment.