1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix sysupgrade(8) downgrade detection.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-05-18 16:30:32 +02:00
parent 1dbd1f760a
commit 2141c95621

View file

@ -270,9 +270,9 @@ static bool downgrading_version(const struct release* old,
return true;
if ( new->version_major > old->version_major )
return false;
if ( new->version_major < old->version_major )
if ( new->version_minor < old->version_minor )
return true;
if ( new->version_major > old->version_major )
if ( new->version_minor > old->version_minor )
return false;
if ( new->version_dev && !old->version_dev )
return true;