Skip to content

Commit

Permalink
Fix having wrong update instruction order, when No updates are required
Browse files Browse the repository at this point in the history
  • Loading branch information
Natshah committed Dec 18, 2022
1 parent 2603d31 commit 3ab7747
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Helpers/VersionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,13 @@ public static function getVersionInfo($packages, $updateConfig, $latestVersions)
}
}

if (preg_match('/' . $conf_to . '/', '/' . $conf_from . '/')) {
unset($versionInfo["next"]);
}

if (preg_match('/' . $conf_to . '/', $profileVersion)) {
if ($conf_to == $conf_from
|| preg_match('/' . $conf_to . '/', $profileVersion)) {
continue;
}

if (preg_match('/' . $conf_from . '/', $profileVersion)) {
$versionInfo["next"] = $profileVersion;
$versionInfo["next"] = $conf_to;
}
}
}
Expand Down

0 comments on commit 3ab7747

Please sign in to comment.