diff --git a/perl-xCAT/xCAT/Yum.pm b/perl-xCAT/xCAT/Yum.pm index 2208e22e2..04a992489 100644 --- a/perl-xCAT/xCAT/Yum.pm +++ b/perl-xCAT/xCAT/Yum.pm @@ -33,6 +33,9 @@ sub check_tofix { fix_directory($File::Find::name); } generate_repo($File::Find::name); + } + elsif($File::Find::name =~ /\/RPM-GPG-KEY/){ + qx(rpm --import $File::Find::name); } } sub generate_repo