Commit 0c18547a authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: add ssh target support for ETERDESTSRPM

parent 734f5b86
......@@ -121,6 +121,19 @@ check_gear_and_tag()
fi
}
rpmbs_copying_built()
{
if [ -n "$ETERDESTSRPM" ] ; then
echog "Copying package(s) in \$ETERDESTSRPM"
if echo "$ETERDESTSRPM" | grep -q ":" ; then
# if ssh target
scp $LISTBUILT $ETERDESTSRPM || echog "Error during copying"
else
mkdir -p $ETERDESTSRPM || echog "Error mkdir $ETERDESTSRPM"
cp -fv $LISTBUILT $ETERDESTSRPM || echog "Error during copying"
fi
fi
}
parse_cmd_pre "$@"
# quotes brokes option handling
......@@ -268,9 +281,7 @@ if [ -n "$SIGN" ]; then
else
test -z "$ETERDESTSRPM" && ETERDESTSRPM=$UPLOADDIR${MENVARG/-/.}
mkdir -p $ETERDESTSRPM || echog "Error mkdir $ETERDESTSRPM"
echog "Copying package(s) in \$ETERDESTSRPM"
cp -fv $LISTBUILT $ETERDESTSRPM || echog "Error during copying"
rpmbs_copying_built
fi
echog "Removing buildroot after upload..."
......@@ -299,10 +310,5 @@ if [ -n "$SIGN" ]; then
exit 1
fi
else
if [ -n "$ETERDESTSRPM" ] ; then
mkdir -p $ETERDESTSRPM || echog "Error mkdir $ETERDESTSRPM"
echog "Copying package(s) in \$ETERDESTSRPM"
cp -fv $LISTBUILT $ETERDESTSRPM || echog "Error during copying"
fi
rpmbs_copying_built
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