Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pes_events_scanner: override repositories when applying an event
The Package class has custom __hash__ and __eq__ methods in order to achieve a straightforward presentation via set manipulation. However, this causes problems, e.g., when applying split events. For example: Applying the event Split(in={(A, repo1)}, out={(A, repo2), (B, repo2)}) to the package state {(A, repo1), (B, repo1)} results in the following: {(A, repo1), (B, repo1)} --apply--> {(A, repo2), (B, repo1)} which is undesired as repo1 is a source system repository. Such a package will get reported to the user as potentially removed during the upgrade. This patch addresses this unwanted behavior.
- Loading branch information