Skip source download, when there are no external URLs among the sources

This commit is contained in:
2026-03-21 20:03:39 +01:00
parent 7c93a52b06
commit d19532153e
+4 -2
View File
@@ -33,8 +33,10 @@ runs:
[ "$SPECFILE" == "" ] && echo Could\'t find a singular spec file to use && exit 1
echo Specfile is $SPECFILE
echo Downloading source archive
spectool -g $SPECFILE
if [ "$(grep -iPc 'source\d*:\s*(https?|ftps?)://' $SPECFILE)" != "0" ]; then
echo Downloading source archive
spectool -g $SPECFILE
fi
# The output of https://copr.fedorainfracloud.org/api/
echo Setting up copr config