use of newly implemented functions
This commit is contained in:
parent
cb7cb51b24
commit
24ead237cc
10
update_psa
10
update_psa
@ -89,13 +89,13 @@ update() {
|
|||||||
revert_customer_repository ; exit 1
|
revert_customer_repository ; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: implementieren, opkg pakete ausschliessen
|
local files=$(changed_file_names)
|
||||||
files=$(changed_file_names)
|
|
||||||
if ! check_md5_for_changed_customer_files $files ; then
|
if ! check_md5_for_changed_conf_and_ini_files "$files" ; then
|
||||||
log_error "$func:${LINENO}: new customer files wrong"
|
log_error "$func:${LINENO}: new customer files wrong"
|
||||||
revert_customer_repository ; exit 1
|
revert_customer_repository ; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -qE ".*opkg_commands.*?" <<< $files; then
|
if grep -qE ".*opkg_commands.*?" <<< $files; then
|
||||||
# read opkg_cmds: each line respresents an opkg-command
|
# read opkg_cmds: each line respresents an opkg-command
|
||||||
readarray opkg_commands < <(cat $opkg_cmds_file)
|
readarray opkg_commands < <(cat $opkg_cmds_file)
|
||||||
@ -125,7 +125,7 @@ update() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# perform a dry-run and check if everything might work as expected.
|
# perform a dry-run and check if everything might work as expected.
|
||||||
if ! exec_opkg_no_action $opkg_c; then
|
if ! exec_opkg_noaction $opkg_c; then
|
||||||
log_error "$func:${LINENO}: "\
|
log_error "$func:${LINENO}: "\
|
||||||
"opkg --noaction $opkg_c failed"
|
"opkg --noaction $opkg_c failed"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user