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:
parent
6be11a8951
commit
1302963b56
@ -255,7 +255,10 @@ impl Comparable for DataForm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn compare_by_requirement(a: &Self, b: &Self) -> Ordering {
|
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;
|
return Ordering::Equal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,10 @@ impl Comparable for Unterformular {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn compare_by_requirement(a: &Self, b: &Self) -> Ordering {
|
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;
|
return Ordering::Equal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user