Skip to content

Commit

Permalink
Fixes for make-release.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 21, 2022
1 parent b6613a4 commit f07514d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/make-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def make_release(version):
already_released_str = ""
for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if RELEASE_VERSION + "\t" in line:
already_released_str = line
break

Expand All @@ -138,10 +138,12 @@ def make_release(version):
github_link_line = ""
for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if "release-" + RELEASE_VERSION + "\t" in line:
github_link_line = line
break

print("github link line" + github_link_line)

if github_link_line != "":
proc = subprocess.Popen(['git','pull', "origin", "release-" + RELEASE_VERSION], stdout = subprocess.PIPE, cwd = temp_dir.name)
proc.wait()
Expand Down Expand Up @@ -213,7 +215,7 @@ def make_release(version):

for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if "release-" + RELEASE_VERSION + "\t" in line:
github_link_line = line
break

Expand Down Expand Up @@ -342,7 +344,7 @@ def make_release(version):
github_link_line = ""
for line in proc.stdout:
line = line.decode("utf-8").rstrip()
if RELEASE_VERSION in line:
if RELEASE_VERSION + "\t" in line:
github_link_line = line
break

Expand Down

0 comments on commit f07514d

Please sign in to comment.