Skip to content

Commit

Permalink
fix force conditional for cni cri-tools debs
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stokes <[email protected]>
  • Loading branch information
adam-stokes committed Nov 20, 2020
1 parent 989198f commit 7264ce5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cilib/service/deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def missing_branches(self):
deb_branches = self.deb_model.base.branches_from_semver_point("0.8.7")
return list(set(upstream_tags) - set(deb_branches))

def sync_debs(self):
def sync_debs(self, force=False):
"""Builds latest deb from each major.minor and uploads to correct ppa"""
for ppa_name in self.ppas.names:
ppa = self.ppas.get_ppa_by_major_minor(ppa_name)
Expand All @@ -220,7 +220,8 @@ def sync_debs(self):
enums.K8S_CNI_SEMVER, exclude_pre
)
if (
not latest_deb_version
force
or not latest_deb_version
or semver.compare(str(latest_branch_version), latest_deb_version_mmp)
> 0
):
Expand All @@ -245,7 +246,7 @@ def missing_branches(self):
deb_branches = self.deb_model.base.branches_from_semver_point("1.19.0")
return list(set(upstream_tags) - set(deb_branches))

def sync_debs(self):
def sync_debs(self, force=False):
"""Builds latest deb from each major.minor and uploads to correct ppa"""
for ppa_name in self.ppas.names:
ppa = self.ppas.get_ppa_by_major_minor(ppa_name)
Expand All @@ -260,7 +261,8 @@ def sync_debs(self):
enums.K8S_CRI_TOOLS_SEMVER, exclude_pre
)
if (
not latest_deb_version
force
or not latest_deb_version
or semver.compare(str(latest_branch_version), latest_deb_version_mmp)
> 0
):
Expand Down

0 comments on commit 7264ce5

Please sign in to comment.