X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.common;fp=build.common;h=749f34d696d66694bce1c4aede84d90d04726782;hb=090f13f4ce8632fa6bcbe1dc34daaab815cfdd16;hp=6ebd55bc64974409bb5758739aed716f55dd1a1a;hpb=248321906bf3d97a125e6d5479b73f4198bbbb47;p=build.git 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