clean should 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 clean.

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 bfdebbaf3e
commit ff18daa680
5 changed files with 18 additions and 12 deletions
+1
View File
@@ -44,6 +44,7 @@ export SWUPD_COULDNT_RENAME_FILE=28 # couldn't rename a file
export SWUPD_SUBPROCESS_ERROR=29 # failure to execute another program in a subprocess
export SWUPD_COULDNT_LIST_DIR=30 # couldn't list the content of a directory
export SWUPD_COMPUTE_HASH_ERROR=31 # there was an error computing the hash of the specified file
export SWUPD_COULDNT_GET_TIME=32 # couldn't get current system time
# global constant
export zero_hash="0000000000000000000000000000000000000000000000000000000000000000"