... | ... |
@@ -159,8 +159,6 @@ function register_state () { |
159 | 159 |
} |
160 | 160 |
|
161 | 161 |
function update_database () { |
162 |
- echo "[ ${#revindex[@]} ] ${ac:1}" |
|
163 |
- |
|
164 | 162 |
dbupdate=$(sqlite_request "select revision from aircrafts where name is '${ac:1}'") |
165 | 163 |
if test -z "$dbupdate"; then |
166 | 164 |
sqlite_request "insert into aircrafts (name, revision, date, author) |
... | ... |
@@ -174,6 +172,9 @@ function update_database () { |
174 | 172 |
fi |
175 | 173 |
id=$(sqlite_request "select id from aircrafts where name is '${ac:1}'") |
176 | 174 |
|
175 |
+ echo "[ ${#revindex[@]} ] ${ac:1}" |
|
176 |
+ unset revindex[$ac] |
|
177 |
+ |
|
177 | 178 |
for sx in ${!setxmlmodified[@]}; do |
178 | 179 |
unset include include_rootpath |
179 | 180 |
[[ "$sx" =~ ^"${ac:1}/" ]] || continue |
... | ... |
@@ -265,7 +266,6 @@ function update_database () { |
265 | 266 |
test -n "$ac_save" && ac=$ac_save |
266 | 267 |
unset setxmlmodified[${ac:1}/$sx] |
267 | 268 |
done |
268 |
- unset revindex[$ac] |
|
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
function apply_revision () { |