Commit e3d2935c authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmpub: test for dest

parent df96b29c
...@@ -45,7 +45,7 @@ ETERDESTSRPM=$1 ...@@ -45,7 +45,7 @@ ETERDESTSRPM=$1
if [ -z "$ETERDESTSRPM" ] ; then if [ -z "$ETERDESTSRPM" ] ; then
ETERDESTSRPM=$(get_etersoft_srpm_path $SPECNAME $ALPHA) ETERDESTSRPM=$(get_etersoft_srpm_path $SPECNAME $ALPHA)
else else
fatal "run with exists dir to publish src.rpm project (I checked $ETERDESTSRPM, it is nonexist)" test -d "$ETERDESTSRPM" || fatal "You need run with exists dir to publish src.rpm project (I checked $ETERDESTSRPM, it is nonexist)"
fi fi
export ETERDESTSRPM export ETERDESTSRPM
...@@ -53,7 +53,7 @@ export ETERDESTSRPM ...@@ -53,7 +53,7 @@ export ETERDESTSRPM
$ETERBUILDBIN/rpmbs -s $SPECNAME || fatal "Can't build SRPMS" $ETERBUILDBIN/rpmbs -s $SPECNAME || fatal "Can't build SRPMS"
# if known target and last link already exists # if known target and last link already exists
if [ -L "$ETERDESTSRPM/../last" ] ; then #if [ -L "$ETERDESTSRPM/../last" ] ; then
# set last link (assume PROJECT/VERSION/sources dir structure) # set last link (assume PROJECT/VERSION/sources dir structure)
set_last_link $ETERDESTSRPM/.. $(get_version $SPECNAME) set_last_link $ETERDESTSRPM/.. $(get_version $SPECNAME)
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