From a2aee1a0bb4695cb45ff5887e987b9b252216596 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 26 Dec 2013 15:09:52 +0800 Subject: [PATCH] fixing bug 3848, moving preuninstall script from prerequisite rpm to meta rpm to make sure it can be issued before componnet been uninstalled. --- xCAT-buildkit/bin/buildkit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index e717029f6..1a4f279a2 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -2169,10 +2169,10 @@ sub gen_kitcomp_spec if (defined($comp->{preupgrade})) { $preupscript = &load_script("$scriptdir$comp->{preupgrade}"); $preupscript = "if [ \"\$1\" = \"2\" ] ; then\n" . $preupscript . "\nfi";} - if (defined($comp->{preuninstall})) { - $preunscript = &load_script("$scriptdir$comp->{preuninstall}"); } } if ( $level eq 'METARPM' || $level eq 'ALL' ) { + if (defined($comp->{preuninstall})) { + $preunscript = &load_script("$scriptdir$comp->{preuninstall}"); } if (defined($comp->{postinstall})) { $postscript = &load_script("$scriptdir$comp->{postinstall}"); $postscript = "if [ \"\$1\" = \"1\" ] ; then\n" . $postscript . "\nfi"; }