less confusing output in specfile when using unknown distro
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 23 Nov 2007 08:56:53 +0000 (08:56 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 23 Nov 2007 08:56:53 +0000 (08:56 +0000)
build.common

index 4828f2c..c08d7ee 100644 (file)
@@ -68,7 +68,9 @@ case $pl_DISTRO in
            pl_DISTRO_NAME=centos$pl_DISTRO_RELEASE
        fi ;;
     *)
-       echo "build.common: WARNING - pl_DISTRO_NAME not set for distro=$pl_DISTRO" ;;
+       pl_DISTRO_NAME="unknown-name-for-${pl_DISTRO}-please-edit-build.common"
+       echo 1>&2 "build.common: WARNING - pl_DISTRO_NAME not set for distro=$pl_DISTRO" 
+       ;;
 esac
 
 # get patch to appropriate yumgroups.xml file