Ben Finney a écrit : > Laurent Guignard <[EMAIL PROTECTED]> writes: > >> Hi mentors, >> >> I read the Debian policy to create my package and i read this at chapter >> "6.1 Introduction to package maintainer scripts" >> >> "The package management system looks at the exit status from these >> scripts. *It is important that they exit with a non-zero status if there >> is an error*, so that the package management system can stop its >> processing. For shell scripts this means that you almost always need to >> use set -e (this is usually true when writing shell scripts, in fact). >> It is also important, of course, that *they don’t exit with a non-zero >> status if everything went well.*" >> >> It seems that if an error occurs, the script have to exit with non-zero >> status > > Yes. > >> and later in paragraph, if all went well, the script has to exit >> with non-zero status. > > No, you've flipped a boolean somewhere :-) It says exactly the > opposite: it is important that the script *not* exit with a non-zero > status if all went well. > >> How do i have understand that ? > > Perhaps the double negatives are confusing you.
Yes it is. A saturday, 07:00 it is excusable ;). > >> My opinion is that if everything went well, the exit status has to >> be zero other else a non-zero status ? > > Yes, that's the meaning of the passage you quoted. > Sorry for noise. -- Laurent Guignard, Registered as user #301590 with the Linux Counter Site : http://www.famille-guignard.org Blog : http://blog.famille-guignard.org Projet : http://sicontact.sourceforge.net GULL de Villefranche sur Saône : http://www.cagull.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]