From d9bb8ec6449e48bdfb1b0a4ee400b91d084a96a8 Mon Sep 17 00:00:00 2001 From: ellen56 Date: Mon, 10 Oct 2011 08:36:09 +0000 Subject: [PATCH] handle case when #ENV is not first of line git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10726 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/imgutils/imgutils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm index 81f6e8911..aed5b1976 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -117,7 +117,7 @@ sub get_package_names { } elsif (/^#NEW_INSTALL_LIST#/) { $pass++; next; - } elsif (/#ENV:([^#^\n]+)#/) { + } elsif (/^#ENV:([^#^\n]+)#/) { my $pa=$pkgnames{$pass}{ENVLIST}; my $env = $1; if (exists($pkgnames{$pass}{ENVLIST})){