1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Detect INSTALL_FAILED_VERSION_DOWNGRADE and uninstall automatically.

This commit is contained in:
Simo Kinnunen 2014-09-24 11:17:14 +09:00
parent 2c6a836299
commit 86c3e98b6d

View file

@ -108,6 +108,7 @@ module.exports = syrup.serial()
.catch(function(err) { .catch(function(err) {
switch (err.code) { switch (err.code) {
case 'INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES': case 'INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES':
case 'INSTALL_FAILED_VERSION_DOWNGRADE':
log.info( log.info(
'Uninstalling "%s" first due to inconsistent certificates' 'Uninstalling "%s" first due to inconsistent certificates'
, pkg , pkg