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

Debian policy, a problem or a misunderstand ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 and later in paragraph, if all went well, the script has to exit
with non-zero status.

How do i have understand that ?

My opinion is that if everything went well, the exit status has to be
zero other else a non-zero status ?

Best regards

- --
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI+XFCjcKpXFc/7oYRAgPpAJ952qnMbHPgYU9TwG+Vno1KkqNTMwCgtRWA
vCjsFNJBKOTHW62ZAOG9KsY=
=fdtv
-----END PGP SIGNATURE-----


Reply to: