From f2555cf60dcade6d2ccbf413b79702a8b49ec902 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 27 Nov 2012 02:47:04 +0000 Subject: [PATCH] import pubkey in os distro git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14433 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Yum.pm | 3 +++ 1 file changed, 3 insertions(+) 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