fix versionComparison check

This commit is contained in:
Ryan Mulligan 2018-04-02 22:06:08 -07:00
parent 3af5473f01
commit 1ca94d6e75

View File

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