Fix the branch determination for stored code when building the docs.

Review Request #12472 — Created July 14, 2022 and submitted

chipx86
Review Board
release-5.0.x
reviewboard

When building docs, we compute the release branch for the product, based
on the version. The code we had for this was using indexes into
reviewboard.VERSION, and had a wrong index used in one spot.

This was hit when building beta docs, as it's a code path we don't usually
hit during doc building.

This change bullet-proofs this logic by pulling out all the variants
from VERSION up-front and then uses those for the logic, instead of
index lookups.

Successfully built the docs.

Summary
Fix the branch determination for stored code when building the docs.
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-5.0.x (02ada29)
Loading...