mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 05:53:19 +02:00
Detect INSTALL_FAILED_VERSION_DOWNGRADE and uninstall automatically.
This commit is contained in:
@@ -108,6 +108,7 @@ module.exports = syrup.serial()
|
||||
.catch(function(err) {
|
||||
switch (err.code) {
|
||||
case 'INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES':
|
||||
case 'INSTALL_FAILED_VERSION_DOWNGRADE':
|
||||
log.info(
|
||||
'Uninstalling "%s" first due to inconsistent certificates'
|
||||
, pkg
|
||||
|
||||
Reference in New Issue
Block a user