Showing 1 changed files with 12 additions and 0 deletions
+12
.fgfs/fgaddon
... ...
@@ -101,6 +101,18 @@ function trap_exit () {
101 101
     if test -n "$missing_setxml"; then
102 102
         echo -e "missing setxml config for :\n$missing_setxml"
103 103
     fi
104
+    local missing_model=$(sqlite_request 'select count(setxml.file)
105
+                                          from aircrafts inner join setxml
106
+                                          where aircrafts.id = setxml.variantof and setxml.`/sim/model/path` = ""')
107
+    if test $missing_model -gt 0; then
108
+        echo "$missing_model aircrafts without /sim/model/path information"
109
+        if test $missing_model -le 10; then
110
+            echo "aircrafts without /sim/model/path information:"
111
+            sqlite_request 'select printf(" - %s/%s", aircrafts.name, setxml.file)
112
+                            from aircrafts inner join setxml
113
+                            where aircrafts.id = setxml.variantof and setxml.`/sim/model/path` = ""'
114
+        fi
115
+    fi
104 116
     if test -r "$database" && md5sum $in_ram_database | sed "s,$in_ram_database,$database," | md5sum --status -c -; then
105 117
         rm -f $in_ram_database
106 118
         echo "no changes in $database"