]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
get_rpm_dist.sh: Fix name for opensuse release.
authorGary Lowell <gary.lowell@inktank.com>
Wed, 13 Feb 2013 17:46:00 +0000 (09:46 -0800)
committerGary Lowell <gary.lowell@inktank.com>
Wed, 13 Feb 2013 17:46:00 +0000 (09:46 -0800)
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
get_rpm_dist.sh

index 5815dd9b132803d3f6acfb48fbdc0c88ff65c817..012bc7e79f881326b05996679ebbe38e1696a98c 100755 (executable)
@@ -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