mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 15:29:29 +00:00
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:
committed by
Otavio Pontes
parent
6c7b9e203b
commit
ce0dccf95c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user