Make autoupdate return consistent exit codes

Regardless of what codes are used internally, swupd should always
exit with a code defined in swupd_exit_codes.h.

This commit makes those changes for autoupdate.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
This commit is contained in:
Castulo Martinez
2019-01-24 15:23:15 -08:00
committed by Otavio Pontes
parent 6c7b9e203b
commit ce0dccf95c
5 changed files with 40 additions and 21 deletions
+1
View File
@@ -41,6 +41,7 @@ export SWUPD_PATH_NOT_IN_MANIFEST=25 # the required path is not in any manifest
export SWUPD_UNEXPECTED_CONDITION=26 # an unexpected condition was found
export SWUPD_COULDNT_RENAME_DIR=27 # couldn't rename a directory
export SWUPD_COULDNT_RENAME_FILE=28 # couldn't rename a file
export SWUPD_SUBPROCESS_ERROR=29 # failure to execute another program in a subprocess
# global constant
export zero_hash="0000000000000000000000000000000000000000000000000000000000000000"