Commit bad98ffd authored by Vitaly Lipatov's avatar Vitaly Lipatov

add handle ssh and local target to get_etersoft_srpm_path

parent e01d7f80
...@@ -18,8 +18,10 @@ get_etersoft_srpm_path() ...@@ -18,8 +18,10 @@ get_etersoft_srpm_path()
[ -n "$SOURCEFTP" ] || fatal "Can't get Source from spec" [ -n "$SOURCEFTP" ] || fatal "Can't get Source from spec"
SOURCEFTP=$(dirname "$SOURCEFTP") SOURCEFTP=$(dirname "$SOURCEFTP")
if ! echo $SOURCEFTP | grep -q $COMPANYFTP ; then # FIXME: pass foreign path, needs to handle proto:// separately from ftp.eter:/path
# if source if not known target, just return empty and we will use UPLOADDIR var if ! echo $SOURCEFTP | grep -q $COMPANYFTP && ! echo $SOURCEFTP | grep -q ":" && ! echo $SOURCEFTP | grep -q "^/"; then
# if source if not known target, or not ssh dest, or local local path,
# just return empty and we will use UPLOADDIR var
# TODO: we can use table for URL translating # TODO: we can use table for URL translating
return return
fi fi
......
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