Skip to content

Commit

Permalink
Merge #4127 Detect changes to replaced_by
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jul 22, 2024
2 parents b19b2fd + 57f946e commit f7b7d1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ All notable changes to this project will be documented in this file.
- [Core] Skip temp files for repo updates (#4102 by: HebaruSan)
- [Core] Fix default transaction timeout (#4119 by: romi2002; reviewed: HebaruSan)
- [Core] Use DriveInfo constructor to get drive from path (#4125 by: HebaruSan)
- [Core] Detect changes to `replaced_by` (#4127 by: HebaruSan)

### Internal

Expand Down
6 changes: 6 additions & 0 deletions Core/Types/CkanModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,12 @@ public bool MetadataEquals(CkanModule other)
return false;
}

if (replaced_by == null ? other.replaced_by != null
: !replaced_by.Equals(other.replaced_by))
{
return false;
}

if (provides != other.provides)
{
if (provides == null || other.provides == null)
Expand Down

0 comments on commit f7b7d1c

Please sign in to comment.