]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
radosgw-agent: fix rhel conditional
authorKen Dreyer <kdreyer@redhat.com>
Fri, 5 Jun 2015 23:05:36 +0000 (17:05 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Fri, 5 Jun 2015 23:07:31 +0000 (17:07 -0600)
Commit b0d187aaf22eb01804a27ddf6688a1fca1f9f96a changed the OS-type
derivation logic from "based on hostname" to a heuristic based on the
files on the system itself.

The conditional for detecting RHEL was inverted. If we *do* have a
/etc/redhat-release file, we want to build RPMs. Update the conditional
to reflect this.

radosgw-agent/build/build

index 4c78b75fabb8f5ef482a3e33e90656c71876087e..1cc9c878036ea19062c2acce230bd531431080e6 100644 (file)
@@ -30,7 +30,7 @@ is_suse() {
     fi
 }
 
-if [[ -f /etc/redhat-release && is_suse -eq 1 ]] ; then
+if [[ -f /etc/redhat-release && is_suse -eq 1 ]] ; then
         rm -rf ./dist  # Remove any previous artifacts
         mkdir -p $WORKSPACE/dist/noarch
         mkdir -p $WORKSPACE/dist/SRPMS