Skip source download, when there are no external URLs among the sources
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user