Skip to content

Commit

Permalink
fix bug where every release would magically get [2] collision
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Oct 24, 2023
1 parent d8510bc commit f05bfe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rose/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,10 @@ def _update_cache_for_releases_executor(
original_virtual_dirname = release_virtual_dirname
collision_no = 2
while True:
if not known_virtual_dirnames.get(release_virtual_dirname, False):
if (
release.virtual_dirname == release_virtual_dirname
or not known_virtual_dirnames.get(release_virtual_dirname, False)
):
break
logger.debug(
"Virtual dirname collision: "
Expand Down

0 comments on commit f05bfe7

Please sign in to comment.