On Fri, Jul 17, 2009 at 10:57:24AM +0200, Vincent Untz wrote:
Le jeudi 16 juillet 2009, à 17:44 +0200, Michael Schroeder a écrit :
On Thu, Jul 16, 2009 at 05:32:44PM +0200, Andre Hübner wrote:
yes, thats it. tomorrow i will try with testing existence of file and do an exit if file exists.
Uh, please *never* do an exit 1 in a pre/postinstall scriptlet. It'll abort in the middle of the transaction and the user will have an inconsistent system state.
Hrm, if it's so easy to break the system, shouldn't rpm do something to avoid this?
Good question, that's one of the reasons why we call rpm for every transaction step in libzypp. If the step fails (scriptlet failure or something else) we can ask the user to retry/skip/abort. If it's just one transaction (e.g. you called rpm yourself with many rpms as arguments) and something fails you're pretty much lost (the more so as rpm deletes all old packages at the end of the transaction, thus you'll have lots of duplicate packages in your system). Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org