Skip to content

Commit b53554f

Browse files
committed
docs/conf.py: Fix wrong assumption that missing prerelease.txt represents a release
1 parent 60ee2ec commit b53554f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_github_username_repo(url):
126126
with open('../CMakeLists.txt', 'r', encoding='utf8') as f:
127127
version = re.search('PROJECT_VERSION "([^"]+)"', f.read()).group(1)
128128
# The full version, including alpha/beta/rc tags.
129-
if not os.path.isfile('../prerelease.txt') or os.path.getsize('../prerelease.txt') == 0:
129+
if os.path.isfile('../prerelease.txt') and os.path.getsize('../prerelease.txt') == 0:
130130
release = version
131131
else:
132132
# This is a prerelease version

0 commit comments

Comments
 (0)