release-changelog can work on a build branch - useful before tagging the build
[build.git] / build.common
index 10616bf..3b73da3 100644 (file)
@@ -63,7 +63,7 @@ function pl_getReleaseName () {
 function pl_getKexcludes () {
     distroname=$1; shift
     case $distroname in 
-       f8|f9)
+       f?|f1?)
            echo 'kernel* util-vserver* iptables iproute'
            ;;
        centos5)
@@ -71,6 +71,7 @@ function pl_getKexcludes () {
            ;;
        *)
            echo "pl_DISTRO_NAME=$pl_DISTRO_NAME not supported in getexcludes.sh"
+           exit 1
            ;;
     esac
 }
@@ -727,6 +728,5 @@ function yumconf_exclude () {
     kexclude_line="$1" ; shift
     
     sed -i -e "/baseurl=.*$/i\\
-$kexclude_line\\
-" $repo
+$kexclude_line" $repo
 }