Skip to content

Commit

Permalink
Update: skip updateScript updates if version doesn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
rhendric committed Feb 7, 2024
1 parent 06c8016 commit afa489f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Update.hs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ updateAttrPath log mergeBase updateEnv@UpdateEnv {..} attrPath = do
-- Already checked that these are Just above.
let oldVer = fromJust oldVerMay
let newVer = fromJust newVerMay

-- Some update scripts make file changes but don't update the package
-- version; ignore these updates (#388)
when (newVer == oldVer) $ throwE "Package version did not change."

return $
UpdateEnv
packageName
Expand Down

0 comments on commit afa489f

Please sign in to comment.