Commit 90e2db40 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmpub: add fatal error if target dir is not set

parent 7ef405af
......@@ -49,6 +49,7 @@ fi
ETERDESTSRPM="$1"
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"
echo "Prepare src.rpm to $ETERDESTSRPM"
else
test -d "$ETERDESTSRPM" || fatal "You need run with exists dir to publish src.rpm project (I checked $ETERDESTSRPM, it is nonexist)"
......
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