ASP-based solve: if an OS is set, respect the value
This commit is contained in:

committed by
Todd Gamblin

parent
6e297b9ba1
commit
4d25fc0068
@@ -572,6 +572,9 @@ os_compatible(OS, OS) :- os(OS).
|
|||||||
% catalina binaries can be used on bigsur. Direction is package -> dependency.
|
% catalina binaries can be used on bigsur. Direction is package -> dependency.
|
||||||
os_compatible("bigsur", "catalina").
|
os_compatible("bigsur", "catalina").
|
||||||
|
|
||||||
|
% If an OS is set explicitly respect the value
|
||||||
|
node_os(Package, OS) :- node_os_set(Package, OS), node(Package).
|
||||||
|
|
||||||
#defined node_os_set/2.
|
#defined node_os_set/2.
|
||||||
#defined os_compatible/2.
|
#defined os_compatible/2.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user