From: Gary Lowell Date: Wed, 13 Feb 2013 17:46:00 +0000 (-0800) Subject: get_rpm_dist.sh: Fix name for opensuse release. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8c3ffae6b0190a1e2893ea8a4969d4614e8b06a;p=ceph-build.git get_rpm_dist.sh: Fix name for opensuse release. Signed-off-by: Gary Lowell --- diff --git a/get_rpm_dist.sh b/get_rpm_dist.sh index 5815dd9b..012bc7e7 100755 --- a/get_rpm_dist.sh +++ b/get_rpm_dist.sh @@ -15,8 +15,16 @@ Fedora) DIST=fc$RELEASE ;; SUSE\ LINUX) + DESC=`$LSB_RELEASE --short --description` RELEASE=`$LSB_RELEASE --short --release` - DIST=sles$RELEASE + case $DESC in + *openSUSE*) + DIST=opensuse$RELEASE + ;; + *Enterprise*) + DIST=sles$RELEASE + ;; + esac ;; *) DIST=unknown