{"action":"created","comment":{"url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/comments/37179796","id":37179796,"diff_hunk":"@@ -5,5 +5,6 @@ source /etc/init.d/functions.sh\n source /etc/portage/util-functions.sh\n \n einfo \"syncing metadata cache\"\n+rsync -avP rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ /usr/portage/metadata/md5-cache/","path":"etc/portage/postsync.d/sync_cache","position":4,"original_position":4,"commit_id":"89a4009fe23635e5c6490b6c202d54cd16b25fe3","original_commit_id":"89a4009fe23635e5c6490b6c202d54cd16b25fe3","user":{"login":"hasufell","id":1241845,"avatar_url":"https://avatars.githubusercontent.com/u/1241845?v=3","gravatar_id":"","url":"https://api.github.com/users/hasufell","html_url":"https://github.com/hasufell","followers_url":"https://api.github.com/users/hasufell/followers","following_url":"https://api.github.com/users/hasufell/following{/other_user}","gists_url":"https://api.github.com/users/hasufell/gists{/gist_id}","starred_url":"https://api.github.com/users/hasufell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasufell/subscriptions","organizations_url":"https://api.github.com/users/hasufell/orgs","repos_url":"https://api.github.com/users/hasufell/repos","events_url":"https://api.github.com/users/hasufell/events{/privacy}","received_events_url":"https://api.github.com/users/hasufell/received_events","type":"User","site_admin":false},"body":"use `${PORTDIR}` here instead of hardcoded `/usr/portage`","created_at":"2015-08-17T11:47:28Z","updated_at":"2015-08-17T11:47:28Z","html_url":"https://github.com/hasufell/portage-gentoo-git-config/pull/2#discussion_r37179796","pull_request_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/comments/37179796"},"html":{"href":"https://github.com/hasufell/portage-gentoo-git-config/pull/2#discussion_r37179796"},"pull_request":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2","id":42575229,"html_url":"https://github.com/hasufell/portage-gentoo-git-config/pull/2","diff_url":"https://github.com/hasufell/portage-gentoo-git-config/pull/2.diff","patch_url":"https://github.com/hasufell/portage-gentoo-git-config/pull/2.patch","issue_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues/2","number":2,"state":"open","locked":false,"title":"sync_cache: Use the rsync cache first","user":{"login":"zx2c4","id":10643,"avatar_url":"https://avatars.githubusercontent.com/u/10643?v=3","gravatar_id":"","url":"https://api.github.com/users/zx2c4","html_url":"https://github.com/zx2c4","followers_url":"https://api.github.com/users/zx2c4/followers","following_url":"https://api.github.com/users/zx2c4/following{/other_user}","gists_url":"https://api.github.com/users/zx2c4/gists{/gist_id}","starred_url":"https://api.github.com/users/zx2c4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zx2c4/subscriptions","organizations_url":"https://api.github.com/users/zx2c4/orgs","repos_url":"https://api.github.com/users/zx2c4/repos","events_url":"https://api.github.com/users/zx2c4/events{/privacy}","received_events_url":"https://api.github.com/users/zx2c4/received_events","type":"User","site_admin":false},"body":"Since updating the cache the first time or after not syncing for a while takes quite a bit of CPU, we might as well opportunistically utilize the rsync cache by selectively rsyncing from it, and then running the local caching operation after.","created_at":"2015-08-17T10:47:46Z","updated_at":"2015-08-17T11:47:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35b08f941c7d3c289044d92517d4ff7d61c99cd5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2/commits","review_comments_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2/comments","review_comment_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues/2/comments","statuses_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/statuses/89a4009fe23635e5c6490b6c202d54cd16b25fe3","head":{"label":"zx2c4:master","ref":"master","sha":"89a4009fe23635e5c6490b6c202d54cd16b25fe3","user":{"login":"zx2c4","id":10643,"avatar_url":"https://avatars.githubusercontent.com/u/10643?v=3","gravatar_id":"","url":"https://api.github.com/users/zx2c4","html_url":"https://github.com/zx2c4","followers_url":"https://api.github.com/users/zx2c4/followers","following_url":"https://api.github.com/users/zx2c4/following{/other_user}","gists_url":"https://api.github.com/users/zx2c4/gists{/gist_id}","starred_url":"https://api.github.com/users/zx2c4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zx2c4/subscriptions","organizations_url":"https://api.github.com/users/zx2c4/orgs","repos_url":"https://api.github.com/users/zx2c4/repos","events_url":"https://api.github.com/users/zx2c4/events{/privacy}","received_events_url":"https://api.github.com/users/zx2c4/received_events","type":"User","site_admin":false},"repo":{"id":40886670,"name":"portage-gentoo-git-config","full_name":"zx2c4/portage-gentoo-git-config","owner":{"login":"zx2c4","id":10643,"avatar_url":"https://avatars.githubusercontent.com/u/10643?v=3","gravatar_id":"","url":"https://api.github.com/users/zx2c4","html_url":"https://github.com/zx2c4","followers_url":"https://api.github.com/users/zx2c4/followers","following_url":"https://api.github.com/users/zx2c4/following{/other_user}","gists_url":"https://api.github.com/users/zx2c4/gists{/gist_id}","starred_url":"https://api.github.com/users/zx2c4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zx2c4/subscriptions","organizations_url":"https://api.github.com/users/zx2c4/orgs","repos_url":"https://api.github.com/users/zx2c4/repos","events_url":"https://api.github.com/users/zx2c4/events{/privacy}","received_events_url":"https://api.github.com/users/zx2c4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zx2c4/portage-gentoo-git-config","description":"Configuring portage to use the gentoo git mirrors and update relevant metadata","fork":true,"url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config","forks_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/forks","keys_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/teams","hooks_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/hooks","issue_events_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/issues/events{/number}","events_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/events","assignees_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/assignees{/user}","branches_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/branches{/branch}","tags_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/tags","blobs_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/statuses/{sha}","languages_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/languages","stargazers_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/stargazers","contributors_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/contributors","subscribers_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/subscribers","subscription_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/subscription","commits_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/contents/{+path}","compare_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/merges","archive_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/downloads","issues_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/issues{/number}","pulls_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/pulls{/number}","milestones_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/milestones{/number}","notifications_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/labels{/name}","releases_url":"https://api.github.com/repos/zx2c4/portage-gentoo-git-config/releases{/id}","created_at":"2015-08-17T10:45:12Z","updated_at":"2015-08-17T10:45:12Z","pushed_at":"2015-08-17T10:47:23Z","git_url":"git://github.com/zx2c4/portage-gentoo-git-config.git","ssh_url":"git@github.com:zx2c4/portage-gentoo-git-config.git","clone_url":"https://github.com/zx2c4/portage-gentoo-git-config.git","svn_url":"https://github.com/zx2c4/portage-gentoo-git-config","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"hasufell:master","ref":"master","sha":"7680f385c82dc53afdc6778fa086add8c75a27b3","user":{"login":"hasufell","id":1241845,"avatar_url":"https://avatars.githubusercontent.com/u/1241845?v=3","gravatar_id":"","url":"https://api.github.com/users/hasufell","html_url":"https://github.com/hasufell","followers_url":"https://api.github.com/users/hasufell/followers","following_url":"https://api.github.com/users/hasufell/following{/other_user}","gists_url":"https://api.github.com/users/hasufell/gists{/gist_id}","starred_url":"https://api.github.com/users/hasufell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasufell/subscriptions","organizations_url":"https://api.github.com/users/hasufell/orgs","repos_url":"https://api.github.com/users/hasufell/repos","events_url":"https://api.github.com/users/hasufell/events{/privacy}","received_events_url":"https://api.github.com/users/hasufell/received_events","type":"User","site_admin":false},"repo":{"id":40734385,"name":"portage-gentoo-git-config","full_name":"hasufell/portage-gentoo-git-config","owner":{"login":"hasufell","id":1241845,"avatar_url":"https://avatars.githubusercontent.com/u/1241845?v=3","gravatar_id":"","url":"https://api.github.com/users/hasufell","html_url":"https://github.com/hasufell","followers_url":"https://api.github.com/users/hasufell/followers","following_url":"https://api.github.com/users/hasufell/following{/other_user}","gists_url":"https://api.github.com/users/hasufell/gists{/gist_id}","starred_url":"https://api.github.com/users/hasufell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasufell/subscriptions","organizations_url":"https://api.github.com/users/hasufell/orgs","repos_url":"https://api.github.com/users/hasufell/repos","events_url":"https://api.github.com/users/hasufell/events{/privacy}","received_events_url":"https://api.github.com/users/hasufell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hasufell/portage-gentoo-git-config","description":"Configuring portage to use the gentoo git mirrors and update relevant metadata","fork":false,"url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config","forks_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/forks","keys_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/teams","hooks_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/hooks","issue_events_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues/events{/number}","events_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/events","assignees_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/assignees{/user}","branches_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/branches{/branch}","tags_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/tags","blobs_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/statuses/{sha}","languages_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/languages","stargazers_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/stargazers","contributors_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/contributors","subscribers_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/subscribers","subscription_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/subscription","commits_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/contents/{+path}","compare_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/merges","archive_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/downloads","issues_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues{/number}","pulls_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls{/number}","milestones_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/milestones{/number}","notifications_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/labels{/name}","releases_url":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/releases{/id}","created_at":"2015-08-14T20:19:17Z","updated_at":"2015-08-15T16:21:12Z","pushed_at":"2015-08-17T10:47:46Z","git_url":"git://github.com/hasufell/portage-gentoo-git-config.git","ssh_url":"git@github.com:hasufell/portage-gentoo-git-config.git","clone_url":"https://github.com/hasufell/portage-gentoo-git-config.git","svn_url":"https://github.com/hasufell/portage-gentoo-git-config","homepage":"","size":0,"stargazers_count":1,"watchers_count":1,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2"},"html":{"href":"https://github.com/hasufell/portage-gentoo-git-config/pull/2"},"issue":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues/2"},"comments":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/hasufell/portage-gentoo-git-config/statuses/89a4009fe23635e5c6490b6c202d54cd16b25fe3"}}}}