Skip to content
Snippets Groups Projects

Draft: Switch release scripts to python-gitlab

Open Walter Lozano requested to merge wip/wlozano/python-gitlab-release into main
1 file
+ 6
6
Compare changes
  • Side-by-side
  • Inline
@@ -86,18 +86,18 @@ function get_packages ()
function tally_rev ()
{
local pkg=$1
local git_branch=$2
local branch=$2
local comp=$3
local rel=$4
base_rev=`get-repo-branch-short-id "pkg/$pkg" "$OSNAME/$rel"`
branch_rev=`get-repo-branch-short-id "pkg/$pkg" "$OSNAME/$rel-$git_branch"`
local release=$4
base_rev=`get-repo-branch-short-id "pkg/$pkg" "$OSNAME/$release"`
branch_rev=`get-repo-branch-short-id "pkg/$pkg" "$OSNAME/$release-$branch"`
if [ "$base_rev" = "null" ] || [ "$branch_rev" = "null" ]
then
echo "Revision cannot be null. Possibly '$OSNAME/$rel => $base_rev' OR '$OSNAME/$rel-$git_branch => $branch_rev' is non-existent"
echo "Revision cannot be null. Possibly '$OSNAME/$rel => $base_rev' OR '$OSNAME/$release-$branch => $branch_rev' is non-existent"
return 1
else
echo "Package $pkg $rel is $base_rev and $rel-$git_branch is $branch_rev"
echo "Package $pkg $release is $base_rev and $release-$branch is $branch_rev"
test "$base_rev" = "$branch_rev"
fi
}
Loading