Hi Thomas, thanks for the reply.
On Friday 21 July 2006 06:31, Thomas Naughton wrote: > I've not had a chance to look over the install_prereq code yet but one > key point that we wanted to stress from a "sanity" system is that we > "make NO changes". Ok, I understand this distinction. Then all you want is to make sure the system is in appropriate state. Well, so does install_prereq, but that is aimed at making changes, indeed. I have changed now the code such that an error in a script will lead to failure of the install_prereq run. > The only thing that happens is you do a check and either SUCCEED, FAIL, or > WARN. If anything tries to fix matters, then you could have cascading > issues, etc. and that isn't the point of the system-sanity facility. I do understand that you have and need the states SUCCEED and FAIL, but don't understand why a WARN is needed. Either the system is ready for proceeding or it is not. This sanity check is actually doing a GO / NO GO decision. For me there's no room in between. If you have a warning that something _might_ go wrong, you should better fix it, and a warning is for me a NO GO. > Geoffroy added some info in the Wiki with a brief description & usage > details. Okay, I saw it. install_prereq might save you work on the long term. This is because it has configuration files in which you can select what you want to do based on distro/version/architecture. This kind of selection will be needed in more involved tests (where distro specific stuff is happening) and you won't need to care about it, beside preparing once the configuration file which decides what check should be invoked. But of course, the time of invocation of the checks through install_prereq must be chosen as early as possible and even before the --dumb installation of the smart package manager. The install_prereq concept is extendable, and we could add a [global] config block into the prereqs.cfg files which is valid for all distros/architectures and overlays the proper config blocks. But this is another story. Best regards, Erich ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
