Skip to content

Commit

Permalink
Add the change to fix this
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Oct 25, 2020
1 parent 59d37c6 commit e8d2010
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/LockDataComparer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ public function getUpdateList()
$list[] = new UpdateListItem($package->name, $package->version);
} else {
if ($old_package->version === $package->version) {
continue;
// Well, unless they are actually on for example dev-master. Then we compare the dist hashes.
if (empty($old_package->dist->reference) || empty($package->dist->reference)) {
continue;
}
if ($old_package->dist->reference === $package->dist->reference) {
continue;
}
$old_package->version = sprintf('%s#%s', $old_package->version, $old_package->dist->reference);
$package->version = sprintf('%s#%s', $package->version, $package->dist->reference);
}
$list[] = new UpdateListItem($package->name, $package->version, $old_package->version);
}
Expand Down

0 comments on commit e8d2010

Please sign in to comment.