Catalogs:-set.xml files cam exclude themselves
Re-add the old feature, that -set.xml files can explicitly opt-out of being included in the catalog. Useful for some development and helper / included files in some aircraft.
This commit is contained in:
parent
7ad60c4471
commit
6034143788
2 changed files with 16 additions and 0 deletions
|
@ -35,6 +35,11 @@ def scan_set_file(aircraft_dir, set_file, includes):
|
||||||
if sim_node == None:
|
if sim_node == None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
# allow -set.xml files to specifcially exclude themselves from
|
||||||
|
# the creation process, by setting <exclude-from-catalog>true</>
|
||||||
|
if (sim_node.getValue("exclude-from-catalog", False) == True):
|
||||||
|
return None
|
||||||
|
|
||||||
variant = {}
|
variant = {}
|
||||||
name = sim_node.getValue("description", None)
|
name = sim_node.getValue("description", None)
|
||||||
if (name == None or len(name) == 0):
|
if (name == None or len(name) == 0):
|
||||||
|
|
11
catalog/testData/Aircraft/f16/f16-excluded-set.xml
Normal file
11
catalog/testData/Aircraft/f16/f16-excluded-set.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<PropertyList include="f16-common.xml">
|
||||||
|
<sim>
|
||||||
|
<exclude-from-catalog type="bool">true</exclude-from-catalog>
|
||||||
|
<name>f16-excluded</name>
|
||||||
|
<description>Fine</description>
|
||||||
|
<long-description>Blah blah blah</long-description>
|
||||||
|
<variant-of>f16a</variant-of>
|
||||||
|
</sim>
|
||||||
|
|
||||||
|
</PropertyList>
|
Loading…
Reference in a new issue