gdebi returns success on dpkg error
Bug #1033631 reported by
Amit Uttamchandani
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdebi (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I noticed if the package errors out (for example, if the postinst script fails), gdebi still returns a '0' indicating a successfull install. It should return a '1' indicating the package failed to install.
The use case is when calling gdebi from a C program that looks for the return status as indication of success or failure. In the case described, dpkg returns a 1 on error while gdebi returns 0.
An easy way to reproduce is to modify an existing debian postinst to exit 1 instead of exit 0 (usually last line of postinst script). Run it by dpkg and gdebi and compare the resulting return status.
To post a comment you must log in.
http:// bazaar. launchpad. net/~gdebi- developers/ gdebi/trunk/ revision/ 424