{"action":"created","comment":{"url":"https://api.github.com/repos/pulp/pulp/pulls/comments/24100098","id":24100098,"diff_hunk":"@@ -35,51 +49,86 @@ else\n     esac\n fi\n \n-echo \"Disabling selinux for dev install\"\n-# dev setup does not work with selinux at this time\n-sudo setenforce 0\n-sudo sed -i 's/enforcing/permissive/' /etc/sysconfig/selinux\n+if [ $(getenforce) = \"Enforcing\" ]; then\n+    echo \"Disabling selinux for dev install\"\n+    # dev setup does not work with selinux at this time\n+    sudo setenforce 0\n+    sudo sed -i 's/enforcing/permissive/' /etc/sysconfig/selinux\n+fi\n \n echo \"Install some prereqs\"\n-sudo yum install -y wget yum-utils\n+sudo yum install -y wget yum-utils redhat-lsb\n \n echo \"setting up repos\"\n # repo setup\n pushd /etc/yum.repos.d\n-sudo wget -q https://repos.fedorapeople.org/repos/pulp/pulp/fedora-pulp.repo\n+if [ \"$(lsb_release -si)\" = \"Fedora\" ]; then\n+    if [ ! -f fedora-pulp.repo ]; then\n+        sudo wget -q https://repos.fedorapeople.org/repos/pulp/pulp/fedora-pulp.repo\n+    fi\n+else\n+    if [ ! -f rhel-pulp.repo ]; then\n+        sudo wget -q https://repos.fedorapeople.org/repos/pulp/pulp/rhel-pulp.repo\n+    fi\n+    if ! rpm -q epel-release; then\n+        sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm\n+    fi\n+fi\n+sudo yum-config-manager --enable pulp-2.6-beta > /dev/null\n sudo yum-config-manager --enable pulp-2.6-testing > /dev/null\n popd\n \n-# install rpms, then remove pulp*\n+echo \"installing some dev tools\"\n+sudo yum install -y vim-enhanced python-virtualenvwrapper\n \n+if ! grep WORKON_HOME ~/.bashrc; then\n+    echo \"Setting up virtualenv\"\n+    echo -e \"# Set up virtualenvwrapper\\nexport WORKON_HOME=$HOME/.virtualenvs\\nexport PIP_VIRTUALENV_BASE=$WORKON_HOME\\nexport VIRTUALENV_USE_DISTRIBUTE=true\\nexport PIP_RESPECT_VIRTUALENV=true\\nsource /usr/bin/virtualenvwrapper.sh\" >> ~/.bashrc\n+fi\n+# We always need to source those variables from the bashrc, in case the user is running this for the\n+# first time, or invoking the script directly with bash.\n+. ~/.bashrc\n+\n+# install rpms, then remove pulp*\n echo \"installing RPMs\"\n sudo yum install -y @pulp-server-qpid @pulp-admin @pulp-consumer\n sudo yum remove -y pulp-\\* python-pulp\\*\n-sudo yum install -y python-setuptools redhat-lsb mongodb mongodb-server \\\n-                    qpid-cpp-server qpid-cpp-server-store python-qpid-qmf \\\n-                    git python-pip python-nose python-mock python-paste\n-sudo yum-config-manager --disable pulp-2.6-testing > /dev/null\n-\n-pushd ~\n-for r in pulp pulp_rpm; do\n-  echo \"checking out $r code\"\n-  git clone https://github.com/pulp/$r\n-  echo \"installing $r dev code\"\n-  pushd $r\n-  sudo python ./pulp-dev.py -I\n-  sudo ./manage_setup_pys.sh develop\n-  popd\n+sudo yum install -y git mongodb mongodb-server python-mock python-mongoengine python-nose \\\n+                    python-paste python-pip python-qpid-qmf python-setuptools \\\n+                    qpid-cpp-server qpid-cpp-server-store \\","path":"playpen/dev-setup.sh","position":119,"original_position":119,"commit_id":"299e00cec840fd8ec155d4717a25cb47d46fb863","original_commit_id":"299e00cec840fd8ec155d4717a25cb47d46fb863","user":{"login":"rbarlow","id":354506,"avatar_url":"https://avatars.githubusercontent.com/u/354506?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarlow","html_url":"https://github.com/rbarlow","followers_url":"https://api.github.com/users/rbarlow/followers","following_url":"https://api.github.com/users/rbarlow/following{/other_user}","gists_url":"https://api.github.com/users/rbarlow/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarlow/subscriptions","organizations_url":"https://api.github.com/users/rbarlow/orgs","repos_url":"https://api.github.com/users/rbarlow/repos","events_url":"https://api.github.com/users/rbarlow/events{/privacy}","received_events_url":"https://api.github.com/users/rbarlow/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2015-02-04T17:15:25Z","updated_at":"2015-02-04T17:15:25Z","html_url":"https://github.com/pulp/pulp/pull/1556#discussion_r24100098","pull_request_url":"https://api.github.com/repos/pulp/pulp/pulls/1556","_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp/pulls/comments/24100098"},"html":{"href":"https://github.com/pulp/pulp/pull/1556#discussion_r24100098"},"pull_request":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1556"}}},"pull_request":{"url":"https://api.github.com/repos/pulp/pulp/pulls/1556","id":27738529,"html_url":"https://github.com/pulp/pulp/pull/1556","diff_url":"https://github.com/pulp/pulp/pull/1556.diff","patch_url":"https://github.com/pulp/pulp/pull/1556.patch","issue_url":"https://api.github.com/repos/pulp/pulp/issues/1556","number":1556,"state":"open","locked":false,"title":"Support RHEL 7 in dev-setup.sh.","user":{"login":"rbarlow","id":354506,"avatar_url":"https://avatars.githubusercontent.com/u/354506?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarlow","html_url":"https://github.com/rbarlow","followers_url":"https://api.github.com/users/rbarlow/followers","following_url":"https://api.github.com/users/rbarlow/following{/other_user}","gists_url":"https://api.github.com/users/rbarlow/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarlow/subscriptions","organizations_url":"https://api.github.com/users/rbarlow/orgs","repos_url":"https://api.github.com/users/rbarlow/repos","events_url":"https://api.github.com/users/rbarlow/events{/privacy}","received_events_url":"https://api.github.com/users/rbarlow/received_events","type":"User","site_admin":false},"body":"This PR adds support for RHEL 7 to our dev-detup.sh, as well as a whole lot of new features:\r\n\r\n* checking out pull requests through git\r\n* virtualenvs for each of our projects\r\n* differentiating between upstream and origin in git checkouts\r\n* Custom code checkout path\r\n* The zoo repo is automatically created and sync'd for you","created_at":"2015-01-21T06:41:08Z","updated_at":"2015-02-04T17:15:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62b24940a902ddfb615584bff2b2979257ee72d5","assignee":{"login":"beav","id":563254,"avatar_url":"https://avatars.githubusercontent.com/u/563254?v=3","gravatar_id":"","url":"https://api.github.com/users/beav","html_url":"https://github.com/beav","followers_url":"https://api.github.com/users/beav/followers","following_url":"https://api.github.com/users/beav/following{/other_user}","gists_url":"https://api.github.com/users/beav/gists{/gist_id}","starred_url":"https://api.github.com/users/beav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beav/subscriptions","organizations_url":"https://api.github.com/users/beav/orgs","repos_url":"https://api.github.com/users/beav/repos","events_url":"https://api.github.com/users/beav/events{/privacy}","received_events_url":"https://api.github.com/users/beav/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pulp/pulp/pulls/1556/commits","review_comments_url":"https://api.github.com/repos/pulp/pulp/pulls/1556/comments","review_comment_url":"https://api.github.com/repos/pulp/pulp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/pulp/pulp/issues/1556/comments","statuses_url":"https://api.github.com/repos/pulp/pulp/statuses/299e00cec840fd8ec155d4717a25cb47d46fb863","head":{"label":"rbarlow:dev_setup","ref":"dev_setup","sha":"299e00cec840fd8ec155d4717a25cb47d46fb863","user":{"login":"rbarlow","id":354506,"avatar_url":"https://avatars.githubusercontent.com/u/354506?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarlow","html_url":"https://github.com/rbarlow","followers_url":"https://api.github.com/users/rbarlow/followers","following_url":"https://api.github.com/users/rbarlow/following{/other_user}","gists_url":"https://api.github.com/users/rbarlow/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarlow/subscriptions","organizations_url":"https://api.github.com/users/rbarlow/orgs","repos_url":"https://api.github.com/users/rbarlow/repos","events_url":"https://api.github.com/users/rbarlow/events{/privacy}","received_events_url":"https://api.github.com/users/rbarlow/received_events","type":"User","site_admin":false},"repo":{"id":24110007,"name":"pulp","full_name":"rbarlow/pulp","owner":{"login":"rbarlow","id":354506,"avatar_url":"https://avatars.githubusercontent.com/u/354506?v=3","gravatar_id":"","url":"https://api.github.com/users/rbarlow","html_url":"https://github.com/rbarlow","followers_url":"https://api.github.com/users/rbarlow/followers","following_url":"https://api.github.com/users/rbarlow/following{/other_user}","gists_url":"https://api.github.com/users/rbarlow/gists{/gist_id}","starred_url":"https://api.github.com/users/rbarlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbarlow/subscriptions","organizations_url":"https://api.github.com/users/rbarlow/orgs","repos_url":"https://api.github.com/users/rbarlow/repos","events_url":"https://api.github.com/users/rbarlow/events{/privacy}","received_events_url":"https://api.github.com/users/rbarlow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rbarlow/pulp","description":"Repository for Pulp platform code, including the server and base admin and consumer clients","fork":true,"url":"https://api.github.com/repos/rbarlow/pulp","forks_url":"https://api.github.com/repos/rbarlow/pulp/forks","keys_url":"https://api.github.com/repos/rbarlow/pulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbarlow/pulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbarlow/pulp/teams","hooks_url":"https://api.github.com/repos/rbarlow/pulp/hooks","issue_events_url":"https://api.github.com/repos/rbarlow/pulp/issues/events{/number}","events_url":"https://api.github.com/repos/rbarlow/pulp/events","assignees_url":"https://api.github.com/repos/rbarlow/pulp/assignees{/user}","branches_url":"https://api.github.com/repos/rbarlow/pulp/branches{/branch}","tags_url":"https://api.github.com/repos/rbarlow/pulp/tags","blobs_url":"https://api.github.com/repos/rbarlow/pulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbarlow/pulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbarlow/pulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbarlow/pulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbarlow/pulp/statuses/{sha}","languages_url":"https://api.github.com/repos/rbarlow/pulp/languages","stargazers_url":"https://api.github.com/repos/rbarlow/pulp/stargazers","contributors_url":"https://api.github.com/repos/rbarlow/pulp/contributors","subscribers_url":"https://api.github.com/repos/rbarlow/pulp/subscribers","subscription_url":"https://api.github.com/repos/rbarlow/pulp/subscription","commits_url":"https://api.github.com/repos/rbarlow/pulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbarlow/pulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbarlow/pulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbarlow/pulp/issues/comments/{number}","contents_url":"https://api.github.com/repos/rbarlow/pulp/contents/{+path}","compare_url":"https://api.github.com/repos/rbarlow/pulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbarlow/pulp/merges","archive_url":"https://api.github.com/repos/rbarlow/pulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbarlow/pulp/downloads","issues_url":"https://api.github.com/repos/rbarlow/pulp/issues{/number}","pulls_url":"https://api.github.com/repos/rbarlow/pulp/pulls{/number}","milestones_url":"https://api.github.com/repos/rbarlow/pulp/milestones{/number}","notifications_url":"https://api.github.com/repos/rbarlow/pulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbarlow/pulp/labels{/name}","releases_url":"https://api.github.com/repos/rbarlow/pulp/releases{/id}","created_at":"2014-09-16T17:30:02Z","updated_at":"2015-02-04T15:12:05Z","pushed_at":"2015-02-04T15:39:29Z","git_url":"git://github.com/rbarlow/pulp.git","ssh_url":"git@github.com:rbarlow/pulp.git","clone_url":"https://github.com/rbarlow/pulp.git","svn_url":"https://github.com/rbarlow/pulp","homepage":"","size":80662,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pulp:master","ref":"master","sha":"d3a2d979d772a70410005a1417ed0a9776e03ae7","user":{"login":"pulp","id":2103606,"avatar_url":"https://avatars.githubusercontent.com/u/2103606?v=3","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"repo":{"id":5314652,"name":"pulp","full_name":"pulp/pulp","owner":{"login":"pulp","id":2103606,"avatar_url":"https://avatars.githubusercontent.com/u/2103606?v=3","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulp/pulp","description":"Repository for Pulp platform code, including the server and base admin and consumer clients","fork":false,"url":"https://api.github.com/repos/pulp/pulp","forks_url":"https://api.github.com/repos/pulp/pulp/forks","keys_url":"https://api.github.com/repos/pulp/pulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulp/pulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulp/pulp/teams","hooks_url":"https://api.github.com/repos/pulp/pulp/hooks","issue_events_url":"https://api.github.com/repos/pulp/pulp/issues/events{/number}","events_url":"https://api.github.com/repos/pulp/pulp/events","assignees_url":"https://api.github.com/repos/pulp/pulp/assignees{/user}","branches_url":"https://api.github.com/repos/pulp/pulp/branches{/branch}","tags_url":"https://api.github.com/repos/pulp/pulp/tags","blobs_url":"https://api.github.com/repos/pulp/pulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulp/pulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulp/pulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulp/pulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulp/pulp/statuses/{sha}","languages_url":"https://api.github.com/repos/pulp/pulp/languages","stargazers_url":"https://api.github.com/repos/pulp/pulp/stargazers","contributors_url":"https://api.github.com/repos/pulp/pulp/contributors","subscribers_url":"https://api.github.com/repos/pulp/pulp/subscribers","subscription_url":"https://api.github.com/repos/pulp/pulp/subscription","commits_url":"https://api.github.com/repos/pulp/pulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulp/pulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulp/pulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulp/pulp/issues/comments/{number}","contents_url":"https://api.github.com/repos/pulp/pulp/contents/{+path}","compare_url":"https://api.github.com/repos/pulp/pulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulp/pulp/merges","archive_url":"https://api.github.com/repos/pulp/pulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulp/pulp/downloads","issues_url":"https://api.github.com/repos/pulp/pulp/issues{/number}","pulls_url":"https://api.github.com/repos/pulp/pulp/pulls{/number}","milestones_url":"https://api.github.com/repos/pulp/pulp/milestones{/number}","notifications_url":"https://api.github.com/repos/pulp/pulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulp/pulp/labels{/name}","releases_url":"https://api.github.com/repos/pulp/pulp/releases{/id}","created_at":"2012-08-06T13:49:20Z","updated_at":"2015-02-04T15:38:40Z","pushed_at":"2015-02-04T15:38:40Z","git_url":"git://github.com/pulp/pulp.git","ssh_url":"git@github.com:pulp/pulp.git","clone_url":"https://github.com/pulp/pulp.git","svn_url":"https://github.com/pulp/pulp","homepage":"","size":200641,"stargazers_count":178,"watchers_count":178,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":33,"forks":76,"open_issues":33,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1556"},"html":{"href":"https://github.com/pulp/pulp/pull/1556"},"issue":{"href":"https://api.github.com/repos/pulp/pulp/issues/1556"},"comments":{"href":"https://api.github.com/repos/pulp/pulp/issues/1556/comments"},"review_comments":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1556/comments"},"review_comment":{"href":"https://api.github.com/repos/pulp/pulp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1556/commits"},"statuses":{"href":"https://api.github.com/repos/pulp/pulp/statuses/299e00cec840fd8ec155d4717a25cb47d46fb863"}}}}