mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	bug fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -313,7 +313,7 @@ sub makescript { | ||||
| 	      s/\s+$//;  #remove trailing spaces | ||||
| 	      next if /^\s*$/; #-- skip empty lines | ||||
| 	      next if ( /^\s*#/ &&  | ||||
|                         !/^\s*#INCLUDE:/ && | ||||
|                         !/^\s*#INCLUDE:[^#^\n]+#/ && | ||||
|                         !/^\s*#NEW_INSTALL_LIST#/ ); #-- skip comments | ||||
| 	      push(@otherpkgs,$_); | ||||
| 	  } | ||||
| @@ -327,9 +327,9 @@ sub makescript { | ||||
| 	  my $doneincludes=0; | ||||
| 	  while (not $doneincludes) { | ||||
| 	      $doneincludes=1; | ||||
| 	      if ($pkgtext =~ /#INCLUDE:[^#]+#/) { | ||||
| 	      if ($pkgtext =~ /#INCLUDE:[^#^\n]+#/) { | ||||
| 		  $doneincludes=0; | ||||
| 		  $pkgtext =~ s/#INCLUDE:([^#]+)#/includefile($1,$idir)/eg; | ||||
| 		  $pkgtext =~ s/#INCLUDE:([^#^\n]+)#/includefile($1,$idir)/eg; | ||||
| 	      } | ||||
| 	  } | ||||
|           my @sublists = split('#NEW_INSTALL_LIST#',$pkgtext); | ||||
| @@ -459,7 +459,7 @@ sub includefile | ||||
|       s/\s+$//;  #remove trailing spaces | ||||
|       next if /^\s*$/; #-- skip empty lines | ||||
|       next if ( /^\s*#/ &&  | ||||
|                 !/^\s*#INCLUDE:/ && | ||||
|                 !/^\s*#INCLUDE:[^#^\n]+#/ && | ||||
|                 !/^\s*#NEW_INSTALL_LIST#/ ); #-- skip comments | ||||
|       push(@text, $_); | ||||
|    } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user