Skip to content

Commit

Permalink
fix a logic error that forced all k8s packages to be rebuilt (#4992)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Dec 14, 2023
1 parent ccb8441 commit 779bf5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/upload-dist-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function package_has_changes() {
fi

if is_old_kubernetes "${key}" ; then
# if old kubernetes package then we can't calculate changes
# we cannot rebuild old kubernetes packages, so we should always say there were no changes
echo "Old kubernetes package ${package}"
return 0
return 1
fi

local upstream_gitsha=
Expand All @@ -51,7 +51,7 @@ function package_has_changes() {
fi
}

# kubernetes packages before 1.24 are not available in the new repo, and so should be copied
# kubernetes packages before 1.24 are not available in the new yum/apt repo, and so should be copied
function is_old_kubernetes() {
local package="$1"
if echo "${package}" | grep -q "kubernetes-1.15" ; then
Expand Down

0 comments on commit 779bf5b

Please sign in to comment.