mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	defect 4349: fix rmkitcomp othepkgs dir removal; fix typo in Schema.pm to now display kitcomponent reponame correctly
This commit is contained in:
		| @@ -3710,7 +3710,7 @@ push(@{$defspec{group}->{'attrs'}}, @nodeattrs); | ||||
|                  access_tabentry => 'kitcomponent.kitcompname=attr:kitcompname', | ||||
|         }, | ||||
|         {attr_name => 'kitreponame', | ||||
|                  tabentry => 'kitcomponent.kitrepoid', | ||||
|                  tabentry => 'kitcomponent.kitreponame', | ||||
|                  access_tabentry => 'kitcomponent.kitcompname=attr:kitcompname', | ||||
|         }, | ||||
|         {attr_name => 'basename', | ||||
|   | ||||
| @@ -2737,7 +2737,7 @@ sub rmkitcomp | ||||
|     # Read all the kitcomponents assigned to all the osimage to make sure the repo used by other osimage | ||||
|     # will not be deleted. | ||||
|  | ||||
|     my @allosikitcomps = $tabs{osimage}->getAllAttribs( 'imagename', 'kitcomponents' ); | ||||
|     my @allosikitcomps = $tabs{osimage}->getAllAttribs( 'imagename', 'kitcomponents','otherpkgdir' ); | ||||
|  | ||||
|     (my $linuximagetable) = $tabs{linuximage}->getAttribs({imagename=> $osimage}, 'postinstall', 'exlist', 'otherpkglist', 'otherpkgdir', 'driverupdatesrc'); | ||||
|     if ( $linuximagetable and $linuximagetable->{otherpkgdir} ) { | ||||
| @@ -2750,7 +2750,11 @@ sub rmkitcomp | ||||
|                 if ( $allosikitcomp->{kitcomponents} and $allosikitcomp->{imagename} ) { | ||||
|                     my @allkitcomps = split /,/, $allosikitcomp->{kitcomponents}; | ||||
|                     foreach my $allkitcomp ( @allkitcomps ) { | ||||
|                         if ( $allosikitcomp->{imagename} ne $osimage or $allkitcomp ne $kitcomponent  ) { | ||||
|                         if ( (($allosikitcomp->{imagename} ne $osimage) and | ||||
|                                ( $allosikitcomp->{otherpkgdir} eq $otherpkgdir )) | ||||
|                               or ($allkitcomp ne $kitcomponent)  ) { | ||||
|  | ||||
| } | ||||
|                             $newosikitcomponents{$allkitcomp} = 1; | ||||
|                         }  | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user