1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

Issue #8: Use system library content as equal content

Since system library content is already present in OS database, it is no dependencies to be imported.
This commit is contained in:
Paul-Christian Volkmer 2023-09-30 16:09:36 +02:00
parent 6be11a8951
commit 1302963b56
2 changed files with 8 additions and 2 deletions

View File

@ -255,7 +255,10 @@ impl Comparable for DataForm {
}
fn compare_by_requirement(a: &Self, b: &Self) -> Ordering {
if a.get_name() == b.get_name() {
if a.get_name() == b.get_name()
|| a.is_system_library_content()
|| b.is_system_library_content()
{
return Ordering::Equal;
}

View File

@ -259,7 +259,10 @@ impl Comparable for Unterformular {
}
fn compare_by_requirement(a: &Self, b: &Self) -> Ordering {
if a.get_name() == b.get_name() {
if a.get_name() == b.get_name()
|| a.is_system_library_content()
|| b.is_system_library_content()
{
return Ordering::Equal;
}