Commit cde33919 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add support for non etersoft target

parent f63b4bc5
......@@ -16,6 +16,13 @@ get_etersoft_srpm_path()
fi
[ -n "$SOURCEFTP" ] || fatal "Can't get Source from spec"
SOURCEFTP=$(dirname "$SOURCEFTP")
if ! echo $SOURCEFTP | grep -q etersoft.ru ; then
# if source if not known target, just return empty and we will use UPLOADDIR var
# TODO: we can use table for URL translating
return
fi
# remove tarball if exists at the end of line (our struct)
echo $SOURCEFTP | grep -q "tarball\$" && SOURCEFTP=$(dirname "$SOURCEFTP")
# translate ftp to local path
......
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