Commit 8441dc58 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: check VCS/url only for the first Source

parent 7ad74d22
...@@ -186,6 +186,9 @@ function get_source_vcs() ...@@ -186,6 +186,9 @@ function get_source_vcs()
local SPEC="$1" local SPEC="$1"
local SN="$2" local SN="$2"
# only for first source
[ "$SN" = "Source" ] || return 1
local vcs="$(grep "^VCS:" $SPEC | head -n1 | sed -e 's|VCS:[[:space:]]*||')" local vcs="$(grep "^VCS:" $SPEC | head -n1 | sed -e 's|VCS:[[:space:]]*||')"
if [ -z "$vcs" ] ; then if [ -z "$vcs" ] ; then
# try hack with Url: # try hack with Url:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment