{"action":"created","comment":{"url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/comments/46000999","id":46000999,"diff_hunk":"@@ -176,14 +176,20 @@ def gen_build_script(working_dir, build_data, **context):\n \n \n     exports = create_exports(build_data)\n-\n+    instructions = build_data['build_item_info'].get('instructions', {})\n+    install_channels = instructions.get('install_channels', None) or ['defaults']\n+    if not 'defaults' in install_channels:","path":"binstar_build_client/worker/utils/script_generator.py","position":24,"original_position":24,"commit_id":"0a2c2f26d39a6ac1a202cfee546af05d5d5dfd84","original_commit_id":"0a2c2f26d39a6ac1a202cfee546af05d5d5dfd84","user":{"login":"PeterDSteinberg","id":1445602,"avatar_url":"https://avatars.githubusercontent.com/u/1445602?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDSteinberg","html_url":"https://github.com/PeterDSteinberg","followers_url":"https://api.github.com/users/PeterDSteinberg/followers","following_url":"https://api.github.com/users/PeterDSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/PeterDSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDSteinberg/subscriptions","organizations_url":"https://api.github.com/users/PeterDSteinberg/orgs","repos_url":"https://api.github.com/users/PeterDSteinberg/repos","events_url":"https://api.github.com/users/PeterDSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDSteinberg/received_events","type":"User","site_admin":false},"body":"@srossross if the user has not given ```defaults``` as an install_channels, it is added automatically to a list of install_channels here.  If we have other logic about automatically adding channels to ```install_channels``` that logic can also go here, like the inclusion of the r channel a couple lines below.","created_at":"2015-11-26T18:20:37Z","updated_at":"2015-11-26T18:20:37Z","html_url":"https://github.com/Anaconda-Server/anaconda-build/pull/147#discussion_r46000999","pull_request_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/comments/46000999"},"html":{"href":"https://github.com/Anaconda-Server/anaconda-build/pull/147#discussion_r46000999"},"pull_request":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147","id":51573803,"html_url":"https://github.com/Anaconda-Server/anaconda-build/pull/147","diff_url":"https://github.com/Anaconda-Server/anaconda-build/pull/147.diff","patch_url":"https://github.com/Anaconda-Server/anaconda-build/pull/147.patch","issue_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/147","number":147,"state":"open","locked":false,"title":"add '-c r' to engine if engine=='r'","user":{"login":"PeterDSteinberg","id":1445602,"avatar_url":"https://avatars.githubusercontent.com/u/1445602?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDSteinberg","html_url":"https://github.com/PeterDSteinberg","followers_url":"https://api.github.com/users/PeterDSteinberg/followers","following_url":"https://api.github.com/users/PeterDSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/PeterDSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDSteinberg/subscriptions","organizations_url":"https://api.github.com/users/PeterDSteinberg/orgs","repos_url":"https://api.github.com/users/PeterDSteinberg/repos","events_url":"https://api.github.com/users/PeterDSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDSteinberg/received_events","type":"User","site_admin":false},"body":"anaconda-build was unable to create the engine 'r' without the channel 'r' being included.","created_at":"2015-11-23T20:13:50Z","updated_at":"2015-11-26T18:20:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acb54ca794bde380e82693686306f2045a4f4005","assignee":{"login":"PeterDSteinberg","id":1445602,"avatar_url":"https://avatars.githubusercontent.com/u/1445602?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDSteinberg","html_url":"https://github.com/PeterDSteinberg","followers_url":"https://api.github.com/users/PeterDSteinberg/followers","following_url":"https://api.github.com/users/PeterDSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/PeterDSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDSteinberg/subscriptions","organizations_url":"https://api.github.com/users/PeterDSteinberg/orgs","repos_url":"https://api.github.com/users/PeterDSteinberg/repos","events_url":"https://api.github.com/users/PeterDSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDSteinberg/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147/commits","review_comments_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147/comments","review_comment_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/147/comments","statuses_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/statuses/0a2c2f26d39a6ac1a202cfee546af05d5d5dfd84","head":{"label":"Anaconda-Server:feature/build_r","ref":"feature/build_r","sha":"0a2c2f26d39a6ac1a202cfee546af05d5d5dfd84","user":{"login":"Anaconda-Server","id":3571983,"avatar_url":"https://avatars.githubusercontent.com/u/3571983?v=3","gravatar_id":"","url":"https://api.github.com/users/Anaconda-Server","html_url":"https://github.com/Anaconda-Server","followers_url":"https://api.github.com/users/Anaconda-Server/followers","following_url":"https://api.github.com/users/Anaconda-Server/following{/other_user}","gists_url":"https://api.github.com/users/Anaconda-Server/gists{/gist_id}","starred_url":"https://api.github.com/users/Anaconda-Server/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anaconda-Server/subscriptions","organizations_url":"https://api.github.com/users/Anaconda-Server/orgs","repos_url":"https://api.github.com/users/Anaconda-Server/repos","events_url":"https://api.github.com/users/Anaconda-Server/events{/privacy}","received_events_url":"https://api.github.com/users/Anaconda-Server/received_events","type":"Organization","site_admin":false},"repo":{"id":19550310,"name":"anaconda-build","full_name":"Anaconda-Server/anaconda-build","owner":{"login":"Anaconda-Server","id":3571983,"avatar_url":"https://avatars.githubusercontent.com/u/3571983?v=3","gravatar_id":"","url":"https://api.github.com/users/Anaconda-Server","html_url":"https://github.com/Anaconda-Server","followers_url":"https://api.github.com/users/Anaconda-Server/followers","following_url":"https://api.github.com/users/Anaconda-Server/following{/other_user}","gists_url":"https://api.github.com/users/Anaconda-Server/gists{/gist_id}","starred_url":"https://api.github.com/users/Anaconda-Server/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anaconda-Server/subscriptions","organizations_url":"https://api.github.com/users/Anaconda-Server/orgs","repos_url":"https://api.github.com/users/Anaconda-Server/repos","events_url":"https://api.github.com/users/Anaconda-Server/events{/privacy}","received_events_url":"https://api.github.com/users/Anaconda-Server/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Anaconda-Server/anaconda-build","description":"Conda server build","fork":false,"url":"https://api.github.com/repos/Anaconda-Server/anaconda-build","forks_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/forks","keys_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/teams","hooks_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/hooks","issue_events_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/events{/number}","events_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/events","assignees_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/assignees{/user}","branches_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/branches{/branch}","tags_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/tags","blobs_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/statuses/{sha}","languages_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/languages","stargazers_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/stargazers","contributors_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/contributors","subscribers_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/subscribers","subscription_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/subscription","commits_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/contents/{+path}","compare_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/merges","archive_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/downloads","issues_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues{/number}","pulls_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls{/number}","milestones_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/milestones{/number}","notifications_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/labels{/name}","releases_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/releases{/id}","created_at":"2014-05-07T21:04:29Z","updated_at":"2015-10-07T22:55:02Z","pushed_at":"2015-11-26T18:08:37Z","git_url":"git://github.com/Anaconda-Server/anaconda-build.git","ssh_url":"git@github.com:Anaconda-Server/anaconda-build.git","clone_url":"https://github.com/Anaconda-Server/anaconda-build.git","svn_url":"https://github.com/Anaconda-Server/anaconda-build","homepage":"","size":710,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":42,"forks":8,"open_issues":42,"watchers":3,"default_branch":"develop"}},"base":{"label":"Anaconda-Server:develop","ref":"develop","sha":"cd08967f267724e08bb8bfb7d0de66de68e8edbf","user":{"login":"Anaconda-Server","id":3571983,"avatar_url":"https://avatars.githubusercontent.com/u/3571983?v=3","gravatar_id":"","url":"https://api.github.com/users/Anaconda-Server","html_url":"https://github.com/Anaconda-Server","followers_url":"https://api.github.com/users/Anaconda-Server/followers","following_url":"https://api.github.com/users/Anaconda-Server/following{/other_user}","gists_url":"https://api.github.com/users/Anaconda-Server/gists{/gist_id}","starred_url":"https://api.github.com/users/Anaconda-Server/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anaconda-Server/subscriptions","organizations_url":"https://api.github.com/users/Anaconda-Server/orgs","repos_url":"https://api.github.com/users/Anaconda-Server/repos","events_url":"https://api.github.com/users/Anaconda-Server/events{/privacy}","received_events_url":"https://api.github.com/users/Anaconda-Server/received_events","type":"Organization","site_admin":false},"repo":{"id":19550310,"name":"anaconda-build","full_name":"Anaconda-Server/anaconda-build","owner":{"login":"Anaconda-Server","id":3571983,"avatar_url":"https://avatars.githubusercontent.com/u/3571983?v=3","gravatar_id":"","url":"https://api.github.com/users/Anaconda-Server","html_url":"https://github.com/Anaconda-Server","followers_url":"https://api.github.com/users/Anaconda-Server/followers","following_url":"https://api.github.com/users/Anaconda-Server/following{/other_user}","gists_url":"https://api.github.com/users/Anaconda-Server/gists{/gist_id}","starred_url":"https://api.github.com/users/Anaconda-Server/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anaconda-Server/subscriptions","organizations_url":"https://api.github.com/users/Anaconda-Server/orgs","repos_url":"https://api.github.com/users/Anaconda-Server/repos","events_url":"https://api.github.com/users/Anaconda-Server/events{/privacy}","received_events_url":"https://api.github.com/users/Anaconda-Server/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Anaconda-Server/anaconda-build","description":"Conda server build","fork":false,"url":"https://api.github.com/repos/Anaconda-Server/anaconda-build","forks_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/forks","keys_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/teams","hooks_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/hooks","issue_events_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/events{/number}","events_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/events","assignees_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/assignees{/user}","branches_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/branches{/branch}","tags_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/tags","blobs_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/statuses/{sha}","languages_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/languages","stargazers_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/stargazers","contributors_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/contributors","subscribers_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/subscribers","subscription_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/subscription","commits_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/contents/{+path}","compare_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/merges","archive_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/downloads","issues_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues{/number}","pulls_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls{/number}","milestones_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/milestones{/number}","notifications_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/labels{/name}","releases_url":"https://api.github.com/repos/Anaconda-Server/anaconda-build/releases{/id}","created_at":"2014-05-07T21:04:29Z","updated_at":"2015-10-07T22:55:02Z","pushed_at":"2015-11-26T18:08:37Z","git_url":"git://github.com/Anaconda-Server/anaconda-build.git","ssh_url":"git@github.com:Anaconda-Server/anaconda-build.git","clone_url":"https://github.com/Anaconda-Server/anaconda-build.git","svn_url":"https://github.com/Anaconda-Server/anaconda-build","homepage":"","size":710,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":42,"forks":8,"open_issues":42,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147"},"html":{"href":"https://github.com/Anaconda-Server/anaconda-build/pull/147"},"issue":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/147"},"comments":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/Anaconda-Server/anaconda-build/statuses/0a2c2f26d39a6ac1a202cfee546af05d5d5dfd84"}}}}