Hey,

As most of you probably saw from the CVS commits, I've added some basic
'uninstall' scripts for most of the packages that were in CVS.  Please,
give them a look and add/remove any RPMS or files that are generated via
scripts.  Certain packages should never actually have their scripts called,
except in the case that we decide to source them all, unless we updated
'scripts/start_over'.  ;)

I use the same template file for all of them.  The server side scripts can
make use of the the libs, e.g., OSCAR::Distro.  However since libs aren't
available on the nodes, I just pasted that routine at the bottom of the
files.  I also put two helper routines at the bottom of both scripts,
remove_rpms(@rpms) and remove_files(@files).  The main thing is that if
anything fails, you should return non-zero.

The following are a few notes/comments I scratched down while doing this.

 * disable-services - skipped this pkg
 * kernel_picker - left out some rpms
 * lam - not uninstall libaio, but did rm libaio-oscar, need switcher stuffo?
 * maui - didn't rm generated config files
 * mpich - :)
 * networking - skipped this pkg
 * ntp - skipped this pkg
 * oda - i go ahead and remove mysql :|
 * opium - skipped cron rpms
 * pbs - didnt rm generated config files
 * perl-Qt - should never be removed...but i listed all the rpms/distros
 * sis - should never be removed...but i listed all the rpms, no files though

Note, ODA is marked as "special".  I've not tested yet but I believe it can
be uninstalled from the In/Un Selector, doesn't seem good.

After some testing, it may be necessary to have a stub file and simply
return 0 for all pkgs that do nothing, just so the 'uninstall' thinks
things are OK instead of an error.   Not sure how the "noop" case is
handled?  default=success or fail?

oscar on!
--tjn
 _________________________________________________________________________
  Thomas Naughton                                      [EMAIL PROTECTED]
  Research Associate                                   (865) 576-4184



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to