Revision 12773
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/runscripts/datasrc_dir.run | ||
---|---|---|
11 | 11 |
{ |
12 | 12 |
echo_func; set_make_vars |
13 | 13 |
if remaking; then datasrc_make uninstall; fi |
14 |
if ! pg_schema_exists; then # uses $schema |
|
14 |
prep_try; if ! pg_schema_exists; then # uses $schema |
|
15 |
rethrow |
|
15 | 16 |
datasrc_make schema |
16 | 17 |
datasrc_make sql/install </dev/null |
17 | 18 |
# </dev/null because for datasources w/o SQL files, cat will try to |
18 | 19 |
# read from stdin |
19 |
fi |
|
20 |
fi; rethrow
|
|
20 | 21 |
fwd_self |
21 | 22 |
} |
22 | 23 |
|
trunk/lib/runscripts/table.run | ||
---|---|---|
104 | 104 |
mappings() |
105 | 105 |
{ |
106 | 106 |
echo_func; set_make_vars |
107 |
public_schema_exists || return 0
|
|
107 |
prep_try; public_schema_exists || { rethrow; return 0; }; rethrow
|
|
108 | 108 |
if remaking; then in_top_dir rm -f map.csv; fi # remake it |
109 | 109 |
test_ |
110 | 110 |
} |
Also available in: Unified diff
bugfix: *{.sh,run}: stderr_matches() wrapper callers: use the required wrapper caller usage, which now includes rethrow and prep_try