mirror of
https://github.com/ryantm/nixpkgs-update.git
synced 2025-01-07 12:00:07 +03:00
Check that version is actually newer via compareVersions
This commit is contained in:
parent
23ecf1eebf
commit
cddfe9418b
5
up.sh
5
up.sh
@ -23,6 +23,11 @@ function error_exit {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! [ $(nix-instantiate --eval -E "builtins.compareVersions '$NEW_VERSION' '$OLD_VERSION'") -eq 1 ];
|
||||||
|
then
|
||||||
|
error_exit "$NEW_VERSION is not newer than $OLD_VERSION according to Nix"
|
||||||
|
fi
|
||||||
|
|
||||||
# Package blacklist
|
# Package blacklist
|
||||||
case "$PACKAGE_NAME" in
|
case "$PACKAGE_NAME" in
|
||||||
*jquery*) error_exit "this isn't a real package";;
|
*jquery*) error_exit "this isn't a real package";;
|
||||||
|
Loading…
Reference in New Issue
Block a user