mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 07:32:49 +02:00
fix(ci): Correct SRPM architecture to prevent binary RPM overwrite
Source RPMs were incorrectly being registered with x86_64 architecture instead of 'src', causing them to overwrite the binary RPM in the package registry. This resulted in the 16MB binary being replaced by the 847KB source package. SRPMs now correctly use 'src' architecture.
This commit is contained in:
parent
20ec1e0290
commit
1498ff17e8
1 changed files with 4 additions and 4 deletions
|
@ -349,7 +349,8 @@ jobs:
|
|||
RPM=$(find artifacts -name "continuwuity-*.rpm" \
|
||||
! -name "*debuginfo*" \
|
||||
! -name "*debugsource*" \
|
||||
! -name "*.src.rpm" | head -1)
|
||||
! -name "*.src.rpm" \
|
||||
-type f | head -1)
|
||||
|
||||
if [ -z "$RPM" ]; then
|
||||
echo "No binary RPM found to publish"
|
||||
|
@ -406,9 +407,8 @@ jobs:
|
|||
echo ""
|
||||
echo "Publishing source RPM: $(basename "$SRPM")"
|
||||
|
||||
# Extract SRPM info for deletion
|
||||
SRPM_INFO=$(rpm -qpi "$SRPM" 2>/dev/null)
|
||||
SRPM_ARCH=$(echo "$SRPM_INFO" | grep "^Architecture" | awk '{print $2}')
|
||||
# SRPMs always have architecture "src"
|
||||
SRPM_ARCH="src"
|
||||
|
||||
# Try to delete existing SRPM first (using same name/version as binary RPM)
|
||||
echo "Removing any existing SRPM: $PACKAGE_NAME-$FULL_VERSION.$SRPM_ARCH"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue