Skip to content

Commit 65dedd9

Browse files
committed
fix: Solve problem with package creation for Fedora 41
1 parent eb4e749 commit 65dedd9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build/rpm-publish/RpmPublish.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,16 @@ else
316316
echo "Not running on Fedora 40"
317317
fi
318318

319+
if [ "$distribution" == "Fedora" ] && [ "$distVersionNumber" == "41" ]; then
320+
echo "Do modifications for 'Fedora 41'"
321+
sed -i "s/Release: 1/Release: 1.fc41/g" ~/rpmbuild/SPECS/samba-exporter.spec
322+
buildSystem="rpm"
323+
changeroots="--chroot fedora-${distVersionNumber}-x86_64"
324+
coprUpload="true"
325+
else
326+
echo "Not running on Fedora 41"
327+
fi
328+
319329
if [ "$distribution" == "Fedora" ] && [ "$distVersionNumber" == "42" ]; then
320330
echo "Do modifications for 'Fedora 42'"
321331
sed -i "s/Release: 1/Release: 1.fc42/g" ~/rpmbuild/SPECS/samba-exporter.spec

0 commit comments

Comments
 (0)