From e5a4ad7cba43b9687ec1eee7c63a3310a4301869 Mon Sep 17 00:00:00 2001
From: nott <nott@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd>
Date: Thu, 17 Jun 2010 18:03:04 +0000
Subject: [PATCH] add message

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
---
 xCAT-server/lib/xcat/plugins/aixinstall.pm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm
index 10b8d5a1c..e44afa933 100644
--- a/xCAT-server/lib/xcat/plugins/aixinstall.pm
+++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm
@@ -1440,10 +1440,6 @@ sub chkosimage
 		return 0;
 	}
 
-	# get this systems name as known by xCAT management node
-	my $Sname = xCAT::InstUtils->myxCATname();
-	chomp $Sname;
-
 	# get the name of the primary NIM server
 	#   - either the NIMprime attr of the site table or the management node
 	my $nimprime = xCAT::InstUtils->getnimprime();
@@ -1543,6 +1539,13 @@ sub chkosimage
 		}
 	}
 
+	if ( scalar(@install_list) == 0) {
+		 my $rsp;
+		 push @{$rsp->{data}}, "\nThere was no additional software listed in the \'otherpkgs\' or \'installp_bundle\' attributes.\n";
+		 xCAT::MsgUtils->message("I", $rsp, $callback);
+		 return 0;
+	}
+
 	# get a list of software from the lpp_source dirs
 	my @srclist;