From 726bf4a9d36cede3a24436e0a19ce5e5b90f25cf Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 21 Jul 2011 11:22:09 +0000 Subject: [PATCH] defect 3372358: ignore the inexisted or not accessable file when running get_package_names git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10138 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 c48b230da..31b619771 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -79,7 +79,7 @@ sub get_package_names { my @tmp_array=(); - if ($plist_file_name) { + if ($plist_file_name && -r $plist_file_name) { my $pkgfile; open($pkgfile,"<","$plist_file_name"); while (<$pkgfile>) {