From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] How to fail a ipkg post install?
Date: Mon, 28 Sep 2015 12:33:04 +0200 [thread overview]
Message-ID: <20150928103304.GS26946@pengutronix.de> (raw)
In-Reply-To: <916A03CCEB30DF44AD98D4CFDC7448D05780DD4E@nooslzsmx1.zenitelcss.com>
On Mon, Aug 17, 2015 at 01:25:42PM +0000, Alan Martinović wrote:
> Hi there,
> I'm having problems identifying how to successfully fail an install of a custom package in the postinst script.
>
> I have a dummy postinst script that exits with non zero.
> I would expect that, given that there was an error in the postinst script ipkg would not consider the installation a success.
> However I'm experiencing different behavior.
>
> Here is the example output:
> postinst script returned status 2
> ERROR: mypackage.postinst returned 2
> Successfully terminated.
> mypackage.ipk installed OK
>
> Also, the package version gets updated in ipkg list.
> I've tried return codes -1, 2 and 1.
>
> What is the correct way of preventing the package from being installed if postinst fails?
You are you talking about installing a single package on a running system,
right? Are you using opkg or ipkg? You might try opkg if you're currently
using ipkg.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2015-09-28 10:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 13:25 Alan Martinović
2015-09-28 10:33 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150928103304.GS26946@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox