Skip to content

Commit a905052

Browse files
committed
Add RPM processing debugging
- Show which RPM files are being processed - Display RHEL 8/9 repository assignments - Log final RPM repository structure - Identify which files don't match expected patterns
1 parent ea88251 commit a905052

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/scripts/download_packages.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,23 @@ for asset in data.get('assets', []):
130130
sign_deb_package "$DEB_POOL_UBUNTU24/$clean_name"
131131
fi
132132
elif [[ "$filename" == *.rpm ]]; then
133+
echo "Processing RPM: $filename"
133134
wget -q -P out/packages "$download_url"
134135

135136
if [[ "$filename" =~ ^rhel8-postgresql[0-9]+-documentdb.*\.rpm$ ]]; then
136137
GOT_RPM=1
137138
mkdir -p "$RPM_POOL_RHEL8"
138139
clean_name=$(echo "$filename" | sed 's/^rhel8-//')
140+
echo " Adding to RHEL 8: $filename -> $clean_name"
139141
cp "out/packages/$filename" "$RPM_POOL_RHEL8/$clean_name"
140142
elif [[ "$filename" =~ ^rhel9-postgresql[0-9]+-documentdb.*\.rpm$ ]]; then
141143
GOT_RPM=1
142144
mkdir -p "$RPM_POOL_RHEL9"
143145
clean_name=$(echo "$filename" | sed 's/^rhel9-//')
146+
echo " Adding to RHEL 9: $filename -> $clean_name"
144147
cp "out/packages/$filename" "$RPM_POOL_RHEL9/$clean_name"
148+
else
149+
echo " Skipping RPM (does not match patterns): $filename"
145150
fi
146151
else
147152
wget -q -P out/packages "$download_url"
@@ -169,6 +174,16 @@ print(json.dumps(output, indent=2))
169174
" > out/packages/release-info.json
170175

171176
echo "Successfully processed packages from $REPO"
177+
echo "GOT_DEB=$GOT_DEB, GOT_RPM=$GOT_RPM"
178+
echo "Checking final RPM repository structure:"
179+
for pool in "$RPM_POOL_RHEL8" "$RPM_POOL_RHEL9"; do
180+
if [ -d "$pool" ]; then
181+
echo " $pool: $(ls -1 $pool/*.rpm 2>/dev/null | wc -l) RPM files"
182+
ls -la "$pool"/ 2>/dev/null || echo " Cannot list contents"
183+
else
184+
echo " $pool: Directory does not exist"
185+
fi
186+
done
172187

173188
if [ "$GOT_DEB" = "1" ]; then
174189
echo "Building APT repository with multiple distribution components..."

0 commit comments

Comments
 (0)