From: Ken Dreyer Date: Fri, 5 Jun 2015 23:05:36 +0000 (-0600) Subject: radosgw-agent: fix rhel conditional X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17ab2691cbd7ae70b30306b028ab805d60ad2bf0;p=ceph-build.git radosgw-agent: fix rhel conditional 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. --- diff --git a/radosgw-agent/build/build b/radosgw-agent/build/build index 4c78b75f..1cc9c878 100644 --- a/radosgw-agent/build/build +++ b/radosgw-agent/build/build @@ -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