Fixing bug 3296: cleanup a variable that used in a loop to remove the duplicated packagenames
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14948 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8fc0cd9202
commit
0eccaea186
@ -81,10 +81,13 @@ sub include_file
|
||||
sub get_package_names {
|
||||
my $plist_file_list=shift;
|
||||
my %pkgnames=();
|
||||
my @tmp_array=();
|
||||
|
||||
my @plist_file_names = split ',', $plist_file_list;
|
||||
foreach my $plist_file_name ( @plist_file_names ) {
|
||||
|
||||
# this variable needs to be cleaned when loop the pkglist files
|
||||
my @tmp_array=();
|
||||
|
||||
if ($plist_file_name && -r $plist_file_name) {
|
||||
my $pkgfile;
|
||||
open($pkgfile,"<","$plist_file_name");
|
||||
|
Loading…
Reference in New Issue
Block a user