From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail1.bemta3.messagelabs.com ([195.245.230.167]) by metis.ext.pengutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1ZRKQ4-0000vI-Rz for ptxdist@pengutronix.de; Mon, 17 Aug 2015 15:25:45 +0200 From: =?iso-8859-2?Q?Alan_Martinovi=E6?= Date: Mon, 17 Aug 2015 13:25:42 +0000 Message-ID: <916A03CCEB30DF44AD98D4CFDC7448D05780DD4E@nooslzsmx1.zenitelcss.com> Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] How to fail a ipkg post install? List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0196554423==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" --===============0196554423== Content-Language: en-US Content-Type: multipart/related; boundary="_004_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_"; type="multipart/alternative" --_004_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_ Content-Type: multipart/alternative; boundary="_000_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_" --_000_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_ Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable 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? Tnx ALAN MARTINOVI=C6 DEVELOPMENT ENGINEER ZENITEL NORWAY AS Tel: +385 97 746 6662 alan.martinovic@zenitel.com ZENITEL MARINE MED. OFFICE PERMANI 28, HR-HR-51213 Jurdani, Croatia Switchboard: +385 97 746 6662, Fax: +385 51 292 555 www.zenitel.com [default] DISCLAIMER: This e-mail may contain confidential and privileged material for the sole = use of the intended recipient. Any review, use, distribution or disclosure= by others is strictly prohibited. If you are not the intended recipient (= or authorized to receive for the recipient), please contact the sender by = reply e-mail and delete all copies of this message. --_000_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_ Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable

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.<= o:p>

 

Here is the example output:

postinst script returned= status 2

ERROR: mypackage.postins= t 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 f= rom being installed if postinst fails?

 

Tnx



ALAN MARTINOVI=C6
DEVELOPMENT ENGINEER
ZENITEL NORWAY AS

Tel: +385 97 746 6662
alan.martinovic@zenitel.com

ZENITEL MARINE MED. OFFICE

PERMANI 28, HR-HR-51213 Jurda= ni, Croatia
Switchboard: +385 97 746 6662, Fax: +385 51 292 555
www.zenitel.com

3D"default"<= /a>


DISCLAIMER:
This e-mail may contain confidential and privileged material for the sole = use of the intended recipient. Any review, use, distribution or disclosure= by others is strictly prohibited. If you are not the intended recipient (= or authorized to receive for the recipient), please contact the sender by = reply e-mail and delete all copies of this message.
--_000_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_-- --_004_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_ Content-Type: image/jpeg; name="image002.jpg" Content-Description: image002.jpg Content-Disposition: inline; filename="image002.jpg"; size=4662; creation-date="Mon, 17 Aug 2015 13:25:42 GMT"; modification-date="Mon, 17 Aug 2015 13:25:42 GMT" Content-ID: Content-Transfer-Encoding: base64 /9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMg IyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wAARCABSARQDASIA AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3 ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElK U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3 uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2aiii gAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKA CiiigAooooAKKKKACisPw94rs/Ec15DbRTwzWbhJUmABzyOME9waXV/FVno+s2GlyxTy3N6QIxGo IGTjJyfr+RoC5t0Viab4ps9U1rUdMhjmWawJ8xmA2nnHHNVvDfjjTfE93Na2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J78jpQM25Yo54mimRZI3GGVhkEehFYcXgXw5BciePSLfzAdwz kqD/ALpOP0qLVtXvBaaZJYvIftUTSsYYVZmAQMMKxGBz65qV9TvLm00WOOeKCXUE3PMi7gMJuIUH ufftmgRrX+nWmp2bWl7Ak1u2MxsODjkVJDaw29qltFGqwIgRUA4C4xisNdYul0bzmkjaSK/W1eYL hXXzQhbHbg/nU9zqlxHFrzRsmbGPMXHQ+Vu59eaAJLbwtotnGUttOgjVm3EKO/8AkUVS0+68QyQF vIjkQkFGuQI3I2j+FSR1zRQB0dFFFAwooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACo5 oY7mF4p41kjcYZHGQR7ipKKAKh0y1GnTWMUSwwSqysIwB94YJ+tTwwpbwRwxKFjjUIqjsAMAVJRQ BTbSLB7z7W1nAbncG83YN2R0Oad/Zll9t+2fZYftOc+bsG7pjr9KtUUAQSWVtKCJLeJw0glIZAcu MYb6jA59qkEMYmaUIokZQpfHJAzgZ/E/nT6KAIhbwrHIixIEkJLqF4Ynrn61DbaXY2cMkVtaQxRy jDoiABhjHIq3RQBXs7C10+Nks7eKBGOSsahQTTbzTbPUAv2y2im2fdLrkj1q1RQBELaEeViJB5Q2 x4UfIMYwPTioptNs7i0W1mtont0xtjKjC46Y9KtUUAQCxtRZfZPs8X2bbt8rYNuPTFNg0+0trRrW G2iSB87o1UYbPXI75qzRQAgAUAAYA4AFFLRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFF FFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQB//Z --_004_916A03CCEB30DF44AD98D4CFDC7448D05780DD4Enooslzsmx1zenit_-- --===============0196554423== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --===============0196554423==--