Skip to content

Commit

Permalink
Merge branch 'karimeldegwy/multi-version-support' into karimeldegwy/m…
Browse files Browse the repository at this point in the history
…ulti-version-support-test-1
  • Loading branch information
Karim Eldegwy committed Apr 8, 2024
2 parents f7b2a19 + 34bdaed commit 3327107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check-multi-package-addition-removal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ git fetch origin $GITHUB_BASE_REF
check_duplicates() {
local DIR=$1
echo "Checking directory: $DIR for duplicates..."
echo "Test"
# Array to hold package names
declare -A package_counts
# Loop through .spec files in the directory
for spec_file in "$DIR"/*.spec; do
if [ -e "$spec_file" ]; then # Check if the spec file exists
# Extract package name from the spec file
package_name=$(mariner_rpmspec -q --qf "%{NAME}\n" "$spec_file" 2>/dev/null)
echo "Package name: $package_name"
# Increment package name count
((package_counts[$package_name]++))
fi
Expand Down

0 comments on commit 3327107

Please sign in to comment.