{"action":"created","comment":{"url":"https://api.github.com/repos/rpm-software-management/mock/pulls/comments/103075913","pull_request_review_id":23855291,"id":103075913,"diff_hunk":"@@ -161,6 +161,13 @@ def _init(self, prebuild, do_log):\n                 self.state.start(update_state)\n                 self.pkg_manager.update()\n                 self.state.finish(update_state)\n+        else:\n+            self._fixup_build_user()","path":"py/mockbuild/buildroot.py","position":5,"original_position":5,"commit_id":"e0e372858768c42e728dd59961d43a169b7cc7df","original_commit_id":"e0e372858768c42e728dd59961d43a169b7cc7df","user":{"login":"xsuchy","id":85769,"avatar_url":"https://avatars.githubusercontent.com/u/85769?v=3","gravatar_id":"","url":"https://api.github.com/users/xsuchy","html_url":"https://github.com/xsuchy","followers_url":"https://api.github.com/users/xsuchy/followers","following_url":"https://api.github.com/users/xsuchy/following{/other_user}","gists_url":"https://api.github.com/users/xsuchy/gists{/gist_id}","starred_url":"https://api.github.com/users/xsuchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsuchy/subscriptions","organizations_url":"https://api.github.com/users/xsuchy/orgs","repos_url":"https://api.github.com/users/xsuchy/repos","events_url":"https://api.github.com/users/xsuchy/events{/privacy}","received_events_url":"https://api.github.com/users/xsuchy/received_events","type":"User","site_admin":false},"body":"Instead of this call self.uid_manager.dropPrivsTemp() and at the enf of else block self.uid_manager.restorePrivs()","created_at":"2017-02-25T10:00:10Z","updated_at":"2017-02-25T10:00:10Z","html_url":"https://github.com/rpm-software-management/mock/pull/49#discussion_r103075913","pull_request_url":"https://api.github.com/repos/rpm-software-management/mock/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/rpm-software-management/mock/pulls/comments/103075913"},"html":{"href":"https://github.com/rpm-software-management/mock/pull/49#discussion_r103075913"},"pull_request":{"href":"https://api.github.com/repos/rpm-software-management/mock/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/rpm-software-management/mock/pulls/49","id":107820773,"html_url":"https://github.com/rpm-software-management/mock/pull/49","diff_url":"https://github.com/rpm-software-management/mock/pull/49.diff","patch_url":"https://github.com/rpm-software-management/mock/pull/49.patch","issue_url":"https://api.github.com/repos/rpm-software-management/mock/issues/49","number":49,"state":"open","locked":false,"title":"Ensure mockbuild UID and homedir permissions are correct after mock init from root_cache","user":{"login":"adamel","id":344231,"avatar_url":"https://avatars.githubusercontent.com/u/344231?v=3","gravatar_id":"","url":"https://api.github.com/users/adamel","html_url":"https://github.com/adamel","followers_url":"https://api.github.com/users/adamel/followers","following_url":"https://api.github.com/users/adamel/following{/other_user}","gists_url":"https://api.github.com/users/adamel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamel/subscriptions","organizations_url":"https://api.github.com/users/adamel/orgs","repos_url":"https://api.github.com/users/adamel/repos","events_url":"https://api.github.com/users/adamel/events{/privacy}","received_events_url":"https://api.github.com/users/adamel/received_events","type":"User","site_admin":false},"body":"Fixes issue #48.","created_at":"2017-02-24T12:27:43Z","updated_at":"2017-02-25T10:00:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98f870afe5b4d3d36fa2076524011dbe9ec5d623","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rpm-software-management/mock/pulls/49/commits","review_comments_url":"https://api.github.com/repos/rpm-software-management/mock/pulls/49/comments","review_comment_url":"https://api.github.com/repos/rpm-software-management/mock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpm-software-management/mock/issues/49/comments","statuses_url":"https://api.github.com/repos/rpm-software-management/mock/statuses/e0e372858768c42e728dd59961d43a169b7cc7df","head":{"label":"adamel:devel-issue-48","ref":"devel-issue-48","sha":"e0e372858768c42e728dd59961d43a169b7cc7df","user":{"login":"adamel","id":344231,"avatar_url":"https://avatars.githubusercontent.com/u/344231?v=3","gravatar_id":"","url":"https://api.github.com/users/adamel","html_url":"https://github.com/adamel","followers_url":"https://api.github.com/users/adamel/followers","following_url":"https://api.github.com/users/adamel/following{/other_user}","gists_url":"https://api.github.com/users/adamel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamel/subscriptions","organizations_url":"https://api.github.com/users/adamel/orgs","repos_url":"https://api.github.com/users/adamel/repos","events_url":"https://api.github.com/users/adamel/events{/privacy}","received_events_url":"https://api.github.com/users/adamel/received_events","type":"User","site_admin":false},"repo":{"id":83035974,"name":"mock","full_name":"adamel/mock","owner":{"login":"adamel","id":344231,"avatar_url":"https://avatars.githubusercontent.com/u/344231?v=3","gravatar_id":"","url":"https://api.github.com/users/adamel","html_url":"https://github.com/adamel","followers_url":"https://api.github.com/users/adamel/followers","following_url":"https://api.github.com/users/adamel/following{/other_user}","gists_url":"https://api.github.com/users/adamel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamel/subscriptions","organizations_url":"https://api.github.com/users/adamel/orgs","repos_url":"https://api.github.com/users/adamel/repos","events_url":"https://api.github.com/users/adamel/events{/privacy}","received_events_url":"https://api.github.com/users/adamel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamel/mock","description":"Mock is a tool for reproducible build of RPM packages.","fork":true,"url":"https://api.github.com/repos/adamel/mock","forks_url":"https://api.github.com/repos/adamel/mock/forks","keys_url":"https://api.github.com/repos/adamel/mock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamel/mock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamel/mock/teams","hooks_url":"https://api.github.com/repos/adamel/mock/hooks","issue_events_url":"https://api.github.com/repos/adamel/mock/issues/events{/number}","events_url":"https://api.github.com/repos/adamel/mock/events","assignees_url":"https://api.github.com/repos/adamel/mock/assignees{/user}","branches_url":"https://api.github.com/repos/adamel/mock/branches{/branch}","tags_url":"https://api.github.com/repos/adamel/mock/tags","blobs_url":"https://api.github.com/repos/adamel/mock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamel/mock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamel/mock/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamel/mock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamel/mock/statuses/{sha}","languages_url":"https://api.github.com/repos/adamel/mock/languages","stargazers_url":"https://api.github.com/repos/adamel/mock/stargazers","contributors_url":"https://api.github.com/repos/adamel/mock/contributors","subscribers_url":"https://api.github.com/repos/adamel/mock/subscribers","subscription_url":"https://api.github.com/repos/adamel/mock/subscription","commits_url":"https://api.github.com/repos/adamel/mock/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamel/mock/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamel/mock/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamel/mock/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamel/mock/contents/{+path}","compare_url":"https://api.github.com/repos/adamel/mock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamel/mock/merges","archive_url":"https://api.github.com/repos/adamel/mock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamel/mock/downloads","issues_url":"https://api.github.com/repos/adamel/mock/issues{/number}","pulls_url":"https://api.github.com/repos/adamel/mock/pulls{/number}","milestones_url":"https://api.github.com/repos/adamel/mock/milestones{/number}","notifications_url":"https://api.github.com/repos/adamel/mock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamel/mock/labels{/name}","releases_url":"https://api.github.com/repos/adamel/mock/releases{/id}","deployments_url":"https://api.github.com/repos/adamel/mock/deployments","created_at":"2017-02-24T11:44:22Z","updated_at":"2017-02-24T11:44:25Z","pushed_at":"2017-02-24T21:34:10Z","git_url":"git://github.com/adamel/mock.git","ssh_url":"git@github.com:adamel/mock.git","clone_url":"https://github.com/adamel/mock.git","svn_url":"https://github.com/adamel/mock","homepage":"","size":2481,"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":"devel"}},"base":{"label":"rpm-software-management:devel","ref":"devel","sha":"12e8682d51006501954cb1a41e764eb4bc6776ac","user":{"login":"rpm-software-management","id":8504469,"avatar_url":"https://avatars.githubusercontent.com/u/8504469?v=3","gravatar_id":"","url":"https://api.github.com/users/rpm-software-management","html_url":"https://github.com/rpm-software-management","followers_url":"https://api.github.com/users/rpm-software-management/followers","following_url":"https://api.github.com/users/rpm-software-management/following{/other_user}","gists_url":"https://api.github.com/users/rpm-software-management/gists{/gist_id}","starred_url":"https://api.github.com/users/rpm-software-management/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpm-software-management/subscriptions","organizations_url":"https://api.github.com/users/rpm-software-management/orgs","repos_url":"https://api.github.com/users/rpm-software-management/repos","events_url":"https://api.github.com/users/rpm-software-management/events{/privacy}","received_events_url":"https://api.github.com/users/rpm-software-management/received_events","type":"Organization","site_admin":false},"repo":{"id":65797337,"name":"mock","full_name":"rpm-software-management/mock","owner":{"login":"rpm-software-management","id":8504469,"avatar_url":"https://avatars.githubusercontent.com/u/8504469?v=3","gravatar_id":"","url":"https://api.github.com/users/rpm-software-management","html_url":"https://github.com/rpm-software-management","followers_url":"https://api.github.com/users/rpm-software-management/followers","following_url":"https://api.github.com/users/rpm-software-management/following{/other_user}","gists_url":"https://api.github.com/users/rpm-software-management/gists{/gist_id}","starred_url":"https://api.github.com/users/rpm-software-management/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpm-software-management/subscriptions","organizations_url":"https://api.github.com/users/rpm-software-management/orgs","repos_url":"https://api.github.com/users/rpm-software-management/repos","events_url":"https://api.github.com/users/rpm-software-management/events{/privacy}","received_events_url":"https://api.github.com/users/rpm-software-management/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rpm-software-management/mock","description":"Mock is a tool for reproducible build of RPM packages.","fork":false,"url":"https://api.github.com/repos/rpm-software-management/mock","forks_url":"https://api.github.com/repos/rpm-software-management/mock/forks","keys_url":"https://api.github.com/repos/rpm-software-management/mock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpm-software-management/mock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpm-software-management/mock/teams","hooks_url":"https://api.github.com/repos/rpm-software-management/mock/hooks","issue_events_url":"https://api.github.com/repos/rpm-software-management/mock/issues/events{/number}","events_url":"https://api.github.com/repos/rpm-software-management/mock/events","assignees_url":"https://api.github.com/repos/rpm-software-management/mock/assignees{/user}","branches_url":"https://api.github.com/repos/rpm-software-management/mock/branches{/branch}","tags_url":"https://api.github.com/repos/rpm-software-management/mock/tags","blobs_url":"https://api.github.com/repos/rpm-software-management/mock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpm-software-management/mock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpm-software-management/mock/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpm-software-management/mock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpm-software-management/mock/statuses/{sha}","languages_url":"https://api.github.com/repos/rpm-software-management/mock/languages","stargazers_url":"https://api.github.com/repos/rpm-software-management/mock/stargazers","contributors_url":"https://api.github.com/repos/rpm-software-management/mock/contributors","subscribers_url":"https://api.github.com/repos/rpm-software-management/mock/subscribers","subscription_url":"https://api.github.com/repos/rpm-software-management/mock/subscription","commits_url":"https://api.github.com/repos/rpm-software-management/mock/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpm-software-management/mock/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpm-software-management/mock/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpm-software-management/mock/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpm-software-management/mock/contents/{+path}","compare_url":"https://api.github.com/repos/rpm-software-management/mock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpm-software-management/mock/merges","archive_url":"https://api.github.com/repos/rpm-software-management/mock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpm-software-management/mock/downloads","issues_url":"https://api.github.com/repos/rpm-software-management/mock/issues{/number}","pulls_url":"https://api.github.com/repos/rpm-software-management/mock/pulls{/number}","milestones_url":"https://api.github.com/repos/rpm-software-management/mock/milestones{/number}","notifications_url":"https://api.github.com/repos/rpm-software-management/mock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpm-software-management/mock/labels{/name}","releases_url":"https://api.github.com/repos/rpm-software-management/mock/releases{/id}","deployments_url":"https://api.github.com/repos/rpm-software-management/mock/deployments","created_at":"2016-08-16T07:24:01Z","updated_at":"2017-02-22T06:21:35Z","pushed_at":"2017-02-24T21:34:12Z","git_url":"git://github.com/rpm-software-management/mock.git","ssh_url":"git@github.com:rpm-software-management/mock.git","clone_url":"https://github.com/rpm-software-management/mock.git","svn_url":"https://github.com/rpm-software-management/mock","homepage":"","size":2478,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":17,"forks":20,"open_issues":17,"watchers":25,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/rpm-software-management/mock/pulls/49"},"html":{"href":"https://github.com/rpm-software-management/mock/pull/49"},"issue":{"href":"https://api.github.com/repos/rpm-software-management/mock/issues/49"},"comments":{"href":"https://api.github.com/repos/rpm-software-management/mock/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/rpm-software-management/mock/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/rpm-software-management/mock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpm-software-management/mock/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/rpm-software-management/mock/statuses/e0e372858768c42e728dd59961d43a169b7cc7df"}}}}
{"actor":{"display_login":"xsuchy"}}