How to make RPM installation fail if post script fails ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

 

I don’t know if this is possible, but my RPM consists of several files that are installed (declared in %files of my rpm.spec file), and also several steps to be done in post section, after these files are copied to disk. It is necessary for this rpm that it is not considered as installed if one of the steps I’m doing in the post section of the spec file is failing, so I’ve returned by exiting with non-zero value (hoping this would stop the installation procedure), but this does not help. Strangely enough, when un-installing (with rpm –e command), if some error occurs in my preun script, then the rpm is not uninstalled….

 

Is there some directive or special value to return for making the installation fails after installing the rpm files ? Or am I considering this the wrong way ?

 

Thanks a lot for help,

Best regards.

 

 

 

Catherine LAZZARI

R&D Software Designer 

Tekelec France

20E rue Salomon Grumbach

BP 2087

68059 MULHOUSE Cedex

France

Phone:     +33 3 8933 3426

Fax:         +33 3 8933 4939

 

 

The information in this email is confidential and may be legally privileged. It is intended solely for the addressee and others authorised to receive it. If you are not the intended recipient, any disclosure, copying, distribution or action taken in reliance on its contents is prohibited and may be unlawful.

 

 

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux