Bug 742 - when meet error, ADT installer fail to stop the installation progress
Summary: when meet error, ADT installer fail to stop the installation progress
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: liping Ke
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-02-20 20:42 UTC by liping Ke
Modified: 2011-03-12 17:11 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liping Ke 2011-02-20 20:42:07 UTC
When installing and meeting error, the script function check_result compares error code with "-1". Actually, the number is 255. So it fail to stop the wrong installation. 

Correct way is to check whether the result = 1 and then check the result -nq 0.

Thanks& Regards,
criping
Comment 2 Jessica 2011-03-12 17:11:08 UTC
verified against latest bernard branch