summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_source_files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/get_source_files.sh')
-rwxr-xr-xredhat/build/get_source_files.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/redhat/build/get_source_files.sh b/redhat/build/get_source_files.sh
index 1b0463e4c..529aa49ed 100755
--- a/redhat/build/get_source_files.sh
+++ b/redhat/build/get_source_files.sh
@@ -14,7 +14,11 @@ while read var val; do
case "${var}" in
Version:*) VERSION="${val}";;
Source*:|Source:|Patch[0-9]*:)
- FILE="${SPECDIR}/${val##*/}"
+ if [ "${val:0:7}" = "http://" ] || [ "${val:0:8}" = "https://" ]; then
+ FILE="${SPECDIR}/${val##*/}"
+ else
+ FILE="${SPECDIR}/${val}"
+ fi
if [ "${DIST}" = "any" ] && [ "${var//%\{?dist\}/}" = "${var}" ]; then
FILES="${FILE//%\{?dist\}/.}"*
else