From 090f13f4ce8632fa6bcbe1dc34daaab815cfdd16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Fri, 11 Mar 2011 18:01:36 -0500 Subject: [PATCH] import every key only one time --- build.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.common b/build.common index 6ebd55bc..749f34d6 100644 --- a/build.common +++ b/build.common @@ -751,7 +751,7 @@ $kexclude_line" $template > $dest_yumconf function yumconf_gpgkey () { dest_yumconf=$1; shift - values=$(grep -h '^gpgkey=' $dest_yumconf | sed -e s,gpgkey=,, | sed -e 's,$basearch,'"$pl_DISTRO_ARCH",g | xargs) + values=$(grep -h '^gpgkey=' $dest_yumconf | sed -e s,gpgkey=,, | sed -e 's,$basearch,'"$pl_DISTRO_ARCH",g | sort | uniq | xargs) [ -n "$values" ] || return 1 echo $values return 0 -- 2.47.0