Commit 766a31a0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmpub: add sources to target dir if missed

parent b2a00c31
......@@ -58,6 +58,12 @@ fi
#Example: ETERDESTSRPM=/var/ftp/pub/Etersoft/CIFS@Etersoft/$VERSION/sources
[ -n "$ETERDESTSRPM" ] || ETERDESTSRPM="$1"
# add sources if not yet
if echo $ETERDESTSRPM | grep -q -v /sources && [ -d $ETERDESTSRPM/sources ] ; then
ETERDESTSRPM=$ETERDESTSRPM/sources
fi
if [ -z "$ETERDESTSRPM" ] ; then
ETERDESTSRPM=$(get_etersoft_srpm_path $SPECNAME "$ALPHA")
[ -n "$ETERDESTSRPM" ] || fatal "Can't detect target dir from spec (Url in Source: field). Run rpmpub with TARGETDIR param"
......
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