Commit 1c903ee0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: fix using Source-git: git://

parent 397a5b37
...@@ -130,7 +130,7 @@ function source_ext() ...@@ -130,7 +130,7 @@ function source_ext()
#[ "$SN" = "0" ] && SN="$SN\?" #[ "$SN" = "0" ] && SN="$SN\?"
if grep -q "^# $SN-$2:" "$1" ; then if grep -q "^# $SN-$2:" "$1" ; then
local TMPSPEC=$1.tmpurl local TMPSPEC=$1.tmpurl
local NEWSOURCE=$(grep --text "^# $SN-$2:" "$1" | sed -e "s/.*$2:[ \t]*//g" | tail -n1) local NEWSOURCE=$(grep --text "^# $SN-$2:" "$1" | sed -e "s/.*$SN-$2:[ \t]*//g" | tail -n1)
test -n "$NEWSOURCE" || fatal "Can't extract URL from $SN-$2" test -n "$NEWSOURCE" || fatal "Can't extract URL from $SN-$2"
# Fake replace for correct subst variables # Fake replace for correct subst variables
NEWSOURCE="$(echo "$NEWSOURCE" | sed -e 's|\&|\\&|g')" NEWSOURCE="$(echo "$NEWSOURCE" | sed -e 's|\&|\\&|g')"
......
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