Merge pull request #389 from rhendric/rhendric/fix-388

Update: skip updateScript updates if version doesn't change
This commit is contained in:
Ryan Hendrickson 2024-03-26 17:26:38 -04:00 committed by GitHub
commit ffb20c6910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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