]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
get_rpm_dist: return dist string used in rpm names instead of codename.
authorGary Lowell <glowell@inktank.com>
Tue, 25 Sep 2012 00:00:19 +0000 (17:00 -0700)
committerGary Lowell <glowell@inktank.com>
Tue, 25 Sep 2012 00:00:19 +0000 (17:00 -0700)
get_rpm_dist.sh

index 527ecd2c1a2e304c6e5aa4824f611882cbfd6248..57b00c518a5abff92e16dec57301c178b66f1c52 100755 (executable)
@@ -8,11 +8,11 @@ ID=`$LSB_RELEASE --short --id`
 case $ID in
 CentOS)
        RELEASE=`$LSB_RELEASE --short --release | cut -d. -f1`
-       DIST=$ID$RELEASE
+       DIST=el$RELEASE
        ;;
 Fedora)
        RELEASE=`$LSB_RELEASE --short --release`
-       DIST=$ID$RELEASE
+       DIST=fc$RELEASE
        ;;
 *)
        DIST=unknown