Skip to content

Commit

Permalink
fix regression where new releases would take two updates to noop: upd…
Browse files Browse the repository at this point in the history
…ate track mtime after flushing roseid tag
  • Loading branch information
azuline committed Oct 27, 2023
1 parent 34054bf commit 2a50ac8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rose/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ def _update_cache_for_releases_executor(
track_id = str(uuid6.uuid7())
tags.id = track_id
tags.flush()
# And refresh the mtime because we've just written to the file.
track_mtime = str(os.stat(f).st_mtime)

# And now create the cached track.
track = CachedTrack(
Expand Down

0 comments on commit 2a50ac8

Please sign in to comment.