Skip to content

Commit

Permalink
fix for rpm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio committed Dec 13, 2024
1 parent 2b069a0 commit 715b555
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/perl-cpan-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,14 @@ jobs:
dependencies=$(dpkg-deb -I $package | grep Depends | sed 's/Depends: //')
fi
for dependency in $dependencies; do
if [ "${{ matrix.package_extension }}" == "rpm" ] && [[ $dependency != perl* ]]; then
# Skip non-perl dependencies
if [ "${{ matrix.package_extension }}" == "rpm" ]; then
if [[ $dependency != perl* ]]; then
continue
else
# Update the dependency name to match the package name
dependency=$(echo $dependency | sed 's/(/-/g' | sed 's/)/-/g' | sed 's/::/-/g')
fi
elif [ "${{ matrix.package_extension }}" == "deb" ] && [[ $dependency != lib*-perl ]]; then
continue
fi
Expand Down

0 comments on commit 715b555

Please sign in to comment.