{"action":"created","comment":{"url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments/65206125","id":65206125,"diff_hunk":"@@ -134,14 +164,18 @@ def get_current_target():\n             return target_str.split(',')[0]\n     else:\n         return None\n-        \n \n-def cmd(*args, **kwargs):\n-    try:\n-        subprocess.check_call(args, **kwargs)\n-    except subprocess.CalledProcessError, e:\n-        print >>sys.stderr, 'Error executing command, giving up'\n-        sys.exit(1)\n+\n+def local_link_deps():\n+    root_module_path = os.path.join('/','usr', 'lib', 'yotta_modules')\n+    for subdir in os.listdir(root_module_path):\n+        if subdir == 'libcsp':\n+            subdir = 'csp'","path":"kubos-sdk.py","position":82,"original_position":82,"commit_id":"130ac2c87773b2b4990bd3c6e0c38d885ae9d2c9","original_commit_id":"130ac2c87773b2b4990bd3c6e0c38d885ae9d2c9","user":{"login":"marshall","id":29191,"avatar_url":"https://avatars.githubusercontent.com/u/29191?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall","html_url":"https://github.com/marshall","followers_url":"https://api.github.com/users/marshall/followers","following_url":"https://api.github.com/users/marshall/following{/other_user}","gists_url":"https://api.github.com/users/marshall/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall/subscriptions","organizations_url":"https://api.github.com/users/marshall/orgs","repos_url":"https://api.github.com/users/marshall/repos","events_url":"https://api.github.com/users/marshall/events{/privacy}","received_events_url":"https://api.github.com/users/marshall/received_events","type":"User","site_admin":false},"body":"Similar to above, you should be reading `module.json` here instead of special casing libcsp","created_at":"2016-05-31T15:32:34Z","updated_at":"2016-05-31T15:32:34Z","html_url":"https://github.com/openkosmosorg/kubos-sdk/pull/16#discussion_r65206125","pull_request_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments/65206125"},"html":{"href":"https://github.com/openkosmosorg/kubos-sdk/pull/16#discussion_r65206125"},"pull_request":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16","id":71636944,"html_url":"https://github.com/openkosmosorg/kubos-sdk/pull/16","diff_url":"https://github.com/openkosmosorg/kubos-sdk/pull/16.diff","patch_url":"https://github.com/openkosmosorg/kubos-sdk/pull/16.patch","issue_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/16","number":16,"state":"open","locked":false,"title":"symlink module and target dependencies to global instances in the kubos-sdk container","user":{"login":"kyleparrott","id":10483034,"avatar_url":"https://avatars.githubusercontent.com/u/10483034?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleparrott","html_url":"https://github.com/kyleparrott","followers_url":"https://api.github.com/users/kyleparrott/followers","following_url":"https://api.github.com/users/kyleparrott/following{/other_user}","gists_url":"https://api.github.com/users/kyleparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleparrott/subscriptions","organizations_url":"https://api.github.com/users/kyleparrott/orgs","repos_url":"https://api.github.com/users/kyleparrott/repos","events_url":"https://api.github.com/users/kyleparrott/events{/privacy}","received_events_url":"https://api.github.com/users/kyleparrott/received_events","type":"User","site_admin":false},"body":"This update symlinks the global modules on the build command to avoid downloading. \r\n\r\nIt also links to the local targets and simplifies the target selection process: \r\n`kubos target msp430f5529-gcc` \r\ninstead of\r\n`kubos target msp430f5529-gcc@openkosmosorg/target...`\r\n\r\nIf a user requests a target that is unavailable it now prints a list of locally available targets too.\r\n\r\nThis would fix #11  and fix #7 ","created_at":"2016-05-26T22:49:31Z","updated_at":"2016-05-31T15:32:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"413011b866a2069aced874f64fb8dd61479158b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16/commits","review_comments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16/comments","review_comment_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/16/comments","statuses_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/statuses/130ac2c87773b2b4990bd3c6e0c38d885ae9d2c9","head":{"label":"kyleparrott:link_to_global_modules","ref":"link_to_global_modules","sha":"130ac2c87773b2b4990bd3c6e0c38d885ae9d2c9","user":{"login":"kyleparrott","id":10483034,"avatar_url":"https://avatars.githubusercontent.com/u/10483034?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleparrott","html_url":"https://github.com/kyleparrott","followers_url":"https://api.github.com/users/kyleparrott/followers","following_url":"https://api.github.com/users/kyleparrott/following{/other_user}","gists_url":"https://api.github.com/users/kyleparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleparrott/subscriptions","organizations_url":"https://api.github.com/users/kyleparrott/orgs","repos_url":"https://api.github.com/users/kyleparrott/repos","events_url":"https://api.github.com/users/kyleparrott/events{/privacy}","received_events_url":"https://api.github.com/users/kyleparrott/received_events","type":"User","site_admin":false},"repo":{"id":58077134,"name":"kubos-sdk","full_name":"kyleparrott/kubos-sdk","owner":{"login":"kyleparrott","id":10483034,"avatar_url":"https://avatars.githubusercontent.com/u/10483034?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleparrott","html_url":"https://github.com/kyleparrott","followers_url":"https://api.github.com/users/kyleparrott/followers","following_url":"https://api.github.com/users/kyleparrott/following{/other_user}","gists_url":"https://api.github.com/users/kyleparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleparrott/subscriptions","organizations_url":"https://api.github.com/users/kyleparrott/orgs","repos_url":"https://api.github.com/users/kyleparrott/repos","events_url":"https://api.github.com/users/kyleparrott/events{/privacy}","received_events_url":"https://api.github.com/users/kyleparrott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyleparrott/kubos-sdk","description":"","fork":true,"url":"https://api.github.com/repos/kyleparrott/kubos-sdk","forks_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/forks","keys_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/teams","hooks_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/hooks","issue_events_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/events","assignees_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/tags","blobs_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/languages","stargazers_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/stargazers","contributors_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/contributors","subscribers_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/subscribers","subscription_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/subscription","commits_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/merges","archive_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/downloads","issues_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/labels{/name}","releases_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/kyleparrott/kubos-sdk/deployments","created_at":"2016-05-04T19:05:00Z","updated_at":"2016-05-04T19:05:02Z","pushed_at":"2016-05-27T13:22:07Z","git_url":"git://github.com/kyleparrott/kubos-sdk.git","ssh_url":"git@github.com:kyleparrott/kubos-sdk.git","clone_url":"https://github.com/kyleparrott/kubos-sdk.git","svn_url":"https://github.com/kyleparrott/kubos-sdk","homepage":null,"size":11622,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"openkosmosorg:master","ref":"master","sha":"25e8933a882a36d32947291fd82de19a90d44b6c","user":{"login":"openkosmosorg","id":13735103,"avatar_url":"https://avatars.githubusercontent.com/u/13735103?v=3","gravatar_id":"","url":"https://api.github.com/users/openkosmosorg","html_url":"https://github.com/openkosmosorg","followers_url":"https://api.github.com/users/openkosmosorg/followers","following_url":"https://api.github.com/users/openkosmosorg/following{/other_user}","gists_url":"https://api.github.com/users/openkosmosorg/gists{/gist_id}","starred_url":"https://api.github.com/users/openkosmosorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openkosmosorg/subscriptions","organizations_url":"https://api.github.com/users/openkosmosorg/orgs","repos_url":"https://api.github.com/users/openkosmosorg/repos","events_url":"https://api.github.com/users/openkosmosorg/events{/privacy}","received_events_url":"https://api.github.com/users/openkosmosorg/received_events","type":"Organization","site_admin":false},"repo":{"id":57980164,"name":"kubos-sdk","full_name":"openkosmosorg/kubos-sdk","owner":{"login":"openkosmosorg","id":13735103,"avatar_url":"https://avatars.githubusercontent.com/u/13735103?v=3","gravatar_id":"","url":"https://api.github.com/users/openkosmosorg","html_url":"https://github.com/openkosmosorg","followers_url":"https://api.github.com/users/openkosmosorg/followers","following_url":"https://api.github.com/users/openkosmosorg/following{/other_user}","gists_url":"https://api.github.com/users/openkosmosorg/gists{/gist_id}","starred_url":"https://api.github.com/users/openkosmosorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openkosmosorg/subscriptions","organizations_url":"https://api.github.com/users/openkosmosorg/orgs","repos_url":"https://api.github.com/users/openkosmosorg/repos","events_url":"https://api.github.com/users/openkosmosorg/events{/privacy}","received_events_url":"https://api.github.com/users/openkosmosorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openkosmosorg/kubos-sdk","description":"","fork":false,"url":"https://api.github.com/repos/openkosmosorg/kubos-sdk","forks_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/forks","keys_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/teams","hooks_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/hooks","issue_events_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/events","assignees_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/tags","blobs_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/languages","stargazers_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/stargazers","contributors_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/contributors","subscribers_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/subscribers","subscription_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/subscription","commits_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/merges","archive_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/downloads","issues_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/labels{/name}","releases_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/openkosmosorg/kubos-sdk/deployments","created_at":"2016-05-03T15:30:57Z","updated_at":"2016-05-04T18:52:16Z","pushed_at":"2016-05-27T13:22:08Z","git_url":"git://github.com/openkosmosorg/kubos-sdk.git","ssh_url":"git@github.com:openkosmosorg/kubos-sdk.git","clone_url":"https://github.com/openkosmosorg/kubos-sdk.git","svn_url":"https://github.com/openkosmosorg/kubos-sdk","homepage":null,"size":11619,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16"},"html":{"href":"https://github.com/openkosmosorg/kubos-sdk/pull/16"},"issue":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/16"},"comments":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/openkosmosorg/kubos-sdk/statuses/130ac2c87773b2b4990bd3c6e0c38d885ae9d2c9"}}}}
{"actor":{"display_login":"marshall"}}