From 5a4e5a3559ff7e5878c7f0c4c99284f3b8f6aa42 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 14 Mar 2013 08:50:57 +0000 Subject: [PATCH] support comment in the pkglist on debian/ubuntu git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index fbe04eaba..5396aa31a 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -158,6 +158,9 @@ sub subvars { # append preseed directive lines while () { chomp $_; + if (/^\s*#.*/ ){ + next; + } $pkglist .= " " . $_; }