mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2024-12-17 08:21:44 +03:00
fix versionComparison check
This commit is contained in:
parent
3af5473f01
commit
1ca94d6e75
@ -74,8 +74,9 @@ updatePackage options packageName oldVersion newVersion okToPrAt = do
|
||||
let errorExit = errorExit' branchName
|
||||
|
||||
versionComparison <- cmd "nix" "eval" "-f" "." ("(builtins.compareVersions \"" <> newVersion <> "\" \"" <> oldVersion <> "\")")
|
||||
unless (versionComparison == "1") $ do
|
||||
errorExit $ newVersion <> " is not newer than " <> oldVersion <> " according to Nix"
|
||||
|
||||
unless (versionComparison == "1\n") $ do
|
||||
errorExit $ newVersion <> " is not newer than " <> oldVersion <> " according to Nix; versionComparison: " <> versionComparison
|
||||
|
||||
-- Package blacklist
|
||||
isOnBlackList errorExit packageName
|
||||
|
Loading…
Reference in New Issue
Block a user