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:
parent
1dbd1f760a
commit
2141c95621
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue