Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion appstore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ def first_version_is_newer(current_release, old_release):
for i in range(len(sections_current)):
try:
current = int(sections_current[i])
old = int(sections_old[i])
# Some apps updated manually via Rebble have the "-rbl" suffix, e.g. "1.0-rbl"
# We have to remove the suffix here otherwise the comparison always fail
old_numeric_part = sections_old[i].split("-")[0]
old = int(old_numeric_part)
if current > old:
return True
elif old > current:
Expand Down