pkg.sh: Failure to upload is not fatal any more

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-12-06 09:25:27 +00:00
commit 360c7bca39

View file

@ -490,7 +490,10 @@ upload_file()
{ {
local f="$1" local f="$1"
local t="$2" local t="$2"
[ -f $DIST_PCKG_DIR/$f ] || fatal "+ $DIST_PCKG_DIR/$f doesn't exit, can't upload" [ -f $DIST_PCKG_DIR/$f ] || {
"+ $DIST_PCKG_DIR/$f doesn't exit, can't upload"
return 1
}
local os_name=`os | sed 's/-.*//'` local os_name=`os | sed 's/-.*//'`
local os_version=`os | sed 's/[^-]\+-//'` local os_version=`os | sed 's/[^-]\+-//'`
local target_base=rsync_ssh://root@ftp.jannet.de:/srv/ftp/pub/packages/linux/$os_name/$os_version/inst-source local target_base=rsync_ssh://root@ftp.jannet.de:/srv/ftp/pub/packages/linux/$os_name/$os_version/inst-source