mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update error list for zypper
This commit is contained in:
parent
5b02548e3b
commit
756ef777aa
1 changed files with 19 additions and 1 deletions
|
@ -74,7 +74,25 @@ class _Zypper(object):
|
|||
Allows serial zypper calls (first came, first won).
|
||||
'''
|
||||
|
||||
SUCCESS_EXIT_CODES = [0, 100, 101, 102, 103]
|
||||
SUCCESS_EXIT_CODES = {
|
||||
0: 'Successful run of zypper with no special info.',
|
||||
100: 'Patches are available for installation.',
|
||||
101: 'Security patches are available for installation.',
|
||||
102: 'Installation successful, reboot required.',
|
||||
103: 'Installation succesful, restart of the package manager itself required.',
|
||||
}
|
||||
|
||||
WARNING_EXIT_CODES = {
|
||||
6: 'No repositories are defined.',
|
||||
7: 'The ZYPP library is locked.',
|
||||
106: 'Some repository had to be disabled temporarily because it failed to refresh. '
|
||||
'You should check your repository configuration (e.g. zypper ref -f).',
|
||||
107: 'Installation basically succeeded, but some of the packages %post install scripts returned an error. '
|
||||
'These packages were successfully unpacked to disk and are registered in the rpm database, '
|
||||
'but due to the failed install script they may not work as expected. The failed scripts output might '
|
||||
'reveal what actually went wrong. Any scripts output is also logged to /var/log/zypp/history.'
|
||||
}
|
||||
|
||||
LOCK_EXIT_CODE = 7
|
||||
XML_DIRECTIVES = ['-x', '--xmlout']
|
||||
ZYPPER_LOCK = '/var/run/zypp.pid'
|
||||
|
|
Loading…
Add table
Reference in a new issue