{"action":"created","comment":{"url":"https://api.github.com/repos/conan-io/conan/pulls/comments/219076926","pull_request_review_id":157160270,"id":219076926,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTA3NjkyNg==","diff_hunk":"@@ -135,7 +135,7 @@ def install(self, package_name):\n         _run(self._runner, \"%sapt-get install -y %s%s\" % (self._sudo_str, recommends_str, package_name))\n \n     def installed(self, package_name):\n-        exit_code = self._runner(\"dpkg -s %s\" % package_name, None)\n+        exit_code = self._runner(\"dpkg-query -W -f='${Status}' %s | grep -q \\\"ok installed\\\"\" % package_name, None)","path":"conans/client/tools/system_pm.py","position":5,"original_position":5,"commit_id":"b1d734723cfd9019fba5ba8c7fa2c27b7a2887d9","original_commit_id":"b1d734723cfd9019fba5ba8c7fa2c27b7a2887d9","user":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"body":"Sorry for the confusion, I was trying to run it in a docker container but wrote up the command incorrectly. I think `dpkg-query -W -f='${Status}' libudev-dev | grep -q \"ok installed\"` is working well. ","created_at":"2018-09-20T08:32:27Z","updated_at":"2018-09-20T08:32:28Z","html_url":"https://github.com/conan-io/conan/pull/3033#discussion_r219076926","pull_request_url":"https://api.github.com/repos/conan-io/conan/pulls/3033","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/conan-io/conan/pulls/comments/219076926"},"html":{"href":"https://github.com/conan-io/conan/pull/3033#discussion_r219076926"},"pull_request":{"href":"https://api.github.com/repos/conan-io/conan/pulls/3033"}},"in_reply_to_id":217056582},"pull_request":{"url":"https://api.github.com/repos/conan-io/conan/pulls/3033","id":194430799,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NDMwNzk5","html_url":"https://github.com/conan-io/conan/pull/3033","diff_url":"https://github.com/conan-io/conan/pull/3033.diff","patch_url":"https://github.com/conan-io/conan/pull/3033.patch","issue_url":"https://api.github.com/repos/conan-io/conan/issues/3033","number":3033,"state":"open","locked":false,"title":"Fix check for installed apt packages (#3032)","user":{"login":"aharrison24","id":717570,"node_id":"MDQ6VXNlcjcxNzU3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/717570?v=4","gravatar_id":"","url":"https://api.github.com/users/aharrison24","html_url":"https://github.com/aharrison24","followers_url":"https://api.github.com/users/aharrison24/followers","following_url":"https://api.github.com/users/aharrison24/following{/other_user}","gists_url":"https://api.github.com/users/aharrison24/gists{/gist_id}","starred_url":"https://api.github.com/users/aharrison24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharrison24/subscriptions","organizations_url":"https://api.github.com/users/aharrison24/orgs","repos_url":"https://api.github.com/users/aharrison24/repos","events_url":"https://api.github.com/users/aharrison24/events{/privacy}","received_events_url":"https://api.github.com/users/aharrison24/received_events","type":"User","site_admin":false},"body":"Fix for issue (close #3032)\r\n\r\n- [x] Refer to the issue that supports this Pull Request.\r\n- [x] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.\r\n- [x] I've read the [Contributing guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).\r\n- [x] I've followed the PEP8 style guides for Python code.\r\n- [ ] I've opened another PR in the Conan docs repo to the ``develop`` branch, documenting this one. Also adding a description of the changes in the ``changelog.rst`` file. https://github.com/conan-io/docs\r\n","created_at":"2018-06-12T23:02:03Z","updated_at":"2018-09-20T08:32:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2e99717635d190a9ca1a8297ac3523ee81961f2","assignee":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"assignees":[{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":821746717,"node_id":"MDU6TGFiZWw4MjE3NDY3MTc=","url":"https://api.github.com/repos/conan-io/conan/labels/in%20review","name":"in review","color":"0000e6","default":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/63","html_url":"https://github.com/conan-io/conan/milestone/63","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/63/labels","id":3527583,"node_id":"MDk6TWlsZXN0b25lMzUyNzU4Mw==","number":63,"title":"1.8","description":null,"creator":{"login":"lasote","id":3807515,"node_id":"MDQ6VXNlcjM4MDc1MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":49,"state":"open","created_at":"2018-07-27T09:35:28Z","updated_at":"2018-09-20T08:26:19Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/conan-io/conan/pulls/3033/commits","review_comments_url":"https://api.github.com/repos/conan-io/conan/pulls/3033/comments","review_comment_url":"https://api.github.com/repos/conan-io/conan/pulls/comments{/number}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/3033/comments","statuses_url":"https://api.github.com/repos/conan-io/conan/statuses/b1d734723cfd9019fba5ba8c7fa2c27b7a2887d9","head":{"label":"aharrison24:feature/fix_systempackagetool","ref":"feature/fix_systempackagetool","sha":"b1d734723cfd9019fba5ba8c7fa2c27b7a2887d9","user":{"login":"aharrison24","id":717570,"node_id":"MDQ6VXNlcjcxNzU3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/717570?v=4","gravatar_id":"","url":"https://api.github.com/users/aharrison24","html_url":"https://github.com/aharrison24","followers_url":"https://api.github.com/users/aharrison24/followers","following_url":"https://api.github.com/users/aharrison24/following{/other_user}","gists_url":"https://api.github.com/users/aharrison24/gists{/gist_id}","starred_url":"https://api.github.com/users/aharrison24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharrison24/subscriptions","organizations_url":"https://api.github.com/users/aharrison24/orgs","repos_url":"https://api.github.com/users/aharrison24/repos","events_url":"https://api.github.com/users/aharrison24/events{/privacy}","received_events_url":"https://api.github.com/users/aharrison24/received_events","type":"User","site_admin":false},"repo":{"id":137132742,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxMzI3NDI=","name":"conan","full_name":"aharrison24/conan","private":false,"owner":{"login":"aharrison24","id":717570,"node_id":"MDQ6VXNlcjcxNzU3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/717570?v=4","gravatar_id":"","url":"https://api.github.com/users/aharrison24","html_url":"https://github.com/aharrison24","followers_url":"https://api.github.com/users/aharrison24/followers","following_url":"https://api.github.com/users/aharrison24/following{/other_user}","gists_url":"https://api.github.com/users/aharrison24/gists{/gist_id}","starred_url":"https://api.github.com/users/aharrison24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharrison24/subscriptions","organizations_url":"https://api.github.com/users/aharrison24/orgs","repos_url":"https://api.github.com/users/aharrison24/repos","events_url":"https://api.github.com/users/aharrison24/events{/privacy}","received_events_url":"https://api.github.com/users/aharrison24/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aharrison24/conan","description":"Conan.io - The open-source C/C++ package manager","fork":true,"url":"https://api.github.com/repos/aharrison24/conan","forks_url":"https://api.github.com/repos/aharrison24/conan/forks","keys_url":"https://api.github.com/repos/aharrison24/conan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aharrison24/conan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aharrison24/conan/teams","hooks_url":"https://api.github.com/repos/aharrison24/conan/hooks","issue_events_url":"https://api.github.com/repos/aharrison24/conan/issues/events{/number}","events_url":"https://api.github.com/repos/aharrison24/conan/events","assignees_url":"https://api.github.com/repos/aharrison24/conan/assignees{/user}","branches_url":"https://api.github.com/repos/aharrison24/conan/branches{/branch}","tags_url":"https://api.github.com/repos/aharrison24/conan/tags","blobs_url":"https://api.github.com/repos/aharrison24/conan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aharrison24/conan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aharrison24/conan/git/refs{/sha}","trees_url":"https://api.github.com/repos/aharrison24/conan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aharrison24/conan/statuses/{sha}","languages_url":"https://api.github.com/repos/aharrison24/conan/languages","stargazers_url":"https://api.github.com/repos/aharrison24/conan/stargazers","contributors_url":"https://api.github.com/repos/aharrison24/conan/contributors","subscribers_url":"https://api.github.com/repos/aharrison24/conan/subscribers","subscription_url":"https://api.github.com/repos/aharrison24/conan/subscription","commits_url":"https://api.github.com/repos/aharrison24/conan/commits{/sha}","git_commits_url":"https://api.github.com/repos/aharrison24/conan/git/commits{/sha}","comments_url":"https://api.github.com/repos/aharrison24/conan/comments{/number}","issue_comment_url":"https://api.github.com/repos/aharrison24/conan/issues/comments{/number}","contents_url":"https://api.github.com/repos/aharrison24/conan/contents/{+path}","compare_url":"https://api.github.com/repos/aharrison24/conan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aharrison24/conan/merges","archive_url":"https://api.github.com/repos/aharrison24/conan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aharrison24/conan/downloads","issues_url":"https://api.github.com/repos/aharrison24/conan/issues{/number}","pulls_url":"https://api.github.com/repos/aharrison24/conan/pulls{/number}","milestones_url":"https://api.github.com/repos/aharrison24/conan/milestones{/number}","notifications_url":"https://api.github.com/repos/aharrison24/conan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aharrison24/conan/labels{/name}","releases_url":"https://api.github.com/repos/aharrison24/conan/releases{/id}","deployments_url":"https://api.github.com/repos/aharrison24/conan/deployments","created_at":"2018-06-12T22:06:13Z","updated_at":"2018-06-12T22:06:16Z","pushed_at":"2018-09-11T21:00:34Z","git_url":"git://github.com/aharrison24/conan.git","ssh_url":"git@github.com:aharrison24/conan.git","clone_url":"https://github.com/aharrison24/conan.git","svn_url":"https://github.com/aharrison24/conan","homepage":"https://conan.io","size":5451,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"conan-io:develop","ref":"develop","sha":"69d8b58349db2152b6b6536e9ea10b140bded477","user":{"login":"conan-io","id":15212165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjEyMTY1","avatar_url":"https://avatars3.githubusercontent.com/u/15212165?v=4","gravatar_id":"","url":"https://api.github.com/users/conan-io","html_url":"https://github.com/conan-io","followers_url":"https://api.github.com/users/conan-io/followers","following_url":"https://api.github.com/users/conan-io/following{/other_user}","gists_url":"https://api.github.com/users/conan-io/gists{/gist_id}","starred_url":"https://api.github.com/users/conan-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conan-io/subscriptions","organizations_url":"https://api.github.com/users/conan-io/orgs","repos_url":"https://api.github.com/users/conan-io/repos","events_url":"https://api.github.com/users/conan-io/events{/privacy}","received_events_url":"https://api.github.com/users/conan-io/received_events","type":"Organization","site_admin":false},"repo":{"id":47190624,"node_id":"MDEwOlJlcG9zaXRvcnk0NzE5MDYyNA==","name":"conan","full_name":"conan-io/conan","private":false,"owner":{"login":"conan-io","id":15212165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjEyMTY1","avatar_url":"https://avatars3.githubusercontent.com/u/15212165?v=4","gravatar_id":"","url":"https://api.github.com/users/conan-io","html_url":"https://github.com/conan-io","followers_url":"https://api.github.com/users/conan-io/followers","following_url":"https://api.github.com/users/conan-io/following{/other_user}","gists_url":"https://api.github.com/users/conan-io/gists{/gist_id}","starred_url":"https://api.github.com/users/conan-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conan-io/subscriptions","organizations_url":"https://api.github.com/users/conan-io/orgs","repos_url":"https://api.github.com/users/conan-io/repos","events_url":"https://api.github.com/users/conan-io/events{/privacy}","received_events_url":"https://api.github.com/users/conan-io/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/conan-io/conan","description":"Conan.io - The open-source C/C++ package manager","fork":false,"url":"https://api.github.com/repos/conan-io/conan","forks_url":"https://api.github.com/repos/conan-io/conan/forks","keys_url":"https://api.github.com/repos/conan-io/conan/keys{/key_id}","collaborators_url":"https://api.github.com/repos/conan-io/conan/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/conan-io/conan/teams","hooks_url":"https://api.github.com/repos/conan-io/conan/hooks","issue_events_url":"https://api.github.com/repos/conan-io/conan/issues/events{/number}","events_url":"https://api.github.com/repos/conan-io/conan/events","assignees_url":"https://api.github.com/repos/conan-io/conan/assignees{/user}","branches_url":"https://api.github.com/repos/conan-io/conan/branches{/branch}","tags_url":"https://api.github.com/repos/conan-io/conan/tags","blobs_url":"https://api.github.com/repos/conan-io/conan/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/conan-io/conan/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/conan-io/conan/git/refs{/sha}","trees_url":"https://api.github.com/repos/conan-io/conan/git/trees{/sha}","statuses_url":"https://api.github.com/repos/conan-io/conan/statuses/{sha}","languages_url":"https://api.github.com/repos/conan-io/conan/languages","stargazers_url":"https://api.github.com/repos/conan-io/conan/stargazers","contributors_url":"https://api.github.com/repos/conan-io/conan/contributors","subscribers_url":"https://api.github.com/repos/conan-io/conan/subscribers","subscription_url":"https://api.github.com/repos/conan-io/conan/subscription","commits_url":"https://api.github.com/repos/conan-io/conan/commits{/sha}","git_commits_url":"https://api.github.com/repos/conan-io/conan/git/commits{/sha}","comments_url":"https://api.github.com/repos/conan-io/conan/comments{/number}","issue_comment_url":"https://api.github.com/repos/conan-io/conan/issues/comments{/number}","contents_url":"https://api.github.com/repos/conan-io/conan/contents/{+path}","compare_url":"https://api.github.com/repos/conan-io/conan/compare/{base}...{head}","merges_url":"https://api.github.com/repos/conan-io/conan/merges","archive_url":"https://api.github.com/repos/conan-io/conan/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/conan-io/conan/downloads","issues_url":"https://api.github.com/repos/conan-io/conan/issues{/number}","pulls_url":"https://api.github.com/repos/conan-io/conan/pulls{/number}","milestones_url":"https://api.github.com/repos/conan-io/conan/milestones{/number}","notifications_url":"https://api.github.com/repos/conan-io/conan/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/conan-io/conan/labels{/name}","releases_url":"https://api.github.com/repos/conan-io/conan/releases{/id}","deployments_url":"https://api.github.com/repos/conan-io/conan/deployments","created_at":"2015-12-01T13:17:02Z","updated_at":"2018-09-20T08:04:37Z","pushed_at":"2018-09-20T08:31:04Z","git_url":"git://github.com/conan-io/conan.git","ssh_url":"git@github.com:conan-io/conan.git","clone_url":"https://github.com/conan-io/conan.git","svn_url":"https://github.com/conan-io/conan","homepage":"https://conan.io","size":5536,"stargazers_count":2149,"watchers_count":2149,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":279,"mirror_url":null,"archived":false,"open_issues_count":500,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":279,"open_issues":500,"watchers":2149,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/conan-io/conan/pulls/3033"},"html":{"href":"https://github.com/conan-io/conan/pull/3033"},"issue":{"href":"https://api.github.com/repos/conan-io/conan/issues/3033"},"comments":{"href":"https://api.github.com/repos/conan-io/conan/issues/3033/comments"},"review_comments":{"href":"https://api.github.com/repos/conan-io/conan/pulls/3033/comments"},"review_comment":{"href":"https://api.github.com/repos/conan-io/conan/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/conan-io/conan/pulls/3033/commits"},"statuses":{"href":"https://api.github.com/repos/conan-io/conan/statuses/b1d734723cfd9019fba5ba8c7fa2c27b7a2887d9"}},"author_association":"NONE"}}
{"actor":{"display_login":"lasote"}}