deforaos-job-git-tag-release: fix uploading archives
This commit is contained in:
parent
d3bc9e8ff0
commit
890feda258
|
@ -83,6 +83,7 @@ _tag_release_do()
|
||||||
repository="$1"
|
repository="$1"
|
||||||
tag="$2"
|
tag="$2"
|
||||||
version="$(echo "$tag" | $TR "_-" "-.")"
|
version="$(echo "$tag" | $TR "_-" "-.")"
|
||||||
|
filename="${repository#*/}-$version.tar.gz"
|
||||||
|
|
||||||
#update submodules if any
|
#update submodules if any
|
||||||
if [ -f "$tmpdir/repository/.gitmodules" ]; then
|
if [ -f "$tmpdir/repository/.gitmodules" ]; then
|
||||||
|
@ -110,13 +111,13 @@ _tag_release_do()
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
#locate the archive
|
#locate the archive
|
||||||
if [ ! -f "$tmpdir/repository/$repository-$version.tar.gz" ]; then
|
if [ ! -f "$tmpdir/repository/$filename" ]; then
|
||||||
_error "Could not locate the archive"
|
_error "Could not locate the archive"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
#upload the archive
|
#upload the archive
|
||||||
$RSYNC "$tmpdir/destdir$DATADIR/gtk-doc" "$MIRROR"
|
$RSYNC "$tmpdir/repository/$filename" "$MIRROR"
|
||||||
if [ ! -f "$tmpdir/repository/$repository-$version.tar.gz" ]; then
|
if [ $? -ne 0 ]; then
|
||||||
_error "Could not upload the archive"
|
_error "Could not upload the archive"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user