From 23fcb42679422162348fa118914c7ffdf20344a5 Mon Sep 17 00:00:00 2001 From: nott Date: Fri, 13 Nov 2009 14:55:25 +0000 Subject: [PATCH] fix check for rpm and installp flags git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4567 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index a79aede47..ebad7209e 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -184,7 +184,7 @@ sub preprocess_updatenode Getopt::Long::Configure("no_pass_through"); if ( !GetOptions( - 'c|cmdline' => \$::CMDLINE, + 'c|cmdlineonly' => \$::CMDLINE, 'h|help' => \$::HELP, 'v|version' => \$::VERSION, 'V|verbose' => \$::VERBOSE, @@ -460,7 +460,7 @@ sub updatenode Getopt::Long::Configure("no_pass_through"); if ( !GetOptions( - 'c|cmdline' => \$::CMDLINE, + 'c|cmdlineonly' => \$::CMDLINE, 'h|help' => \$::HELP, 'v|version' => \$::VERSION, 'V|verbose' => \$::VERBOSE, @@ -1299,8 +1299,9 @@ sub updateAIXsoftware # do installp first # if we have installp filesets or other installp flags + # we may just get flags! if ( (scalar(@installp_pkgs)) - || ($imagedefs{$img}{installp_flags} =~ /C|L|l/)) + || ($imagedefs{$img}{installp_flags})) { # - use installp with file @@ -1380,7 +1381,8 @@ sub updateAIXsoftware next; } - if (scalar(@rpm_pkgs) || ($imagedefs{$img}{rpm_flags} =~ /q/)) + # we may just get rpm flags! + if (scalar(@rpm_pkgs) || ($imagedefs{$img}{rpm_flags})) { # don't do rpms if these installp flags were specified