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
This commit is contained in:
daniceexi 2011-07-21 11:22:09 +00:00
parent cd416951e1
commit 726bf4a9d3

View File

@ -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>) {