{"action":"opened","number":121,"pull_request":{"url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121","id":69848468,"html_url":"https://github.com/rpm-software-management/libhif/pull/121","diff_url":"https://github.com/rpm-software-management/libhif/pull/121.diff","patch_url":"https://github.com/rpm-software-management/libhif/pull/121.patch","issue_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121","number":121,"state":"open","locked":false,"title":"hif_context_install: revert back to all arches","user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars.githubusercontent.com/u/11934099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"body":"This is mostly a revert of commit 2f68fea (#50) with two modifications:\r\n  1. use hy_query_filter_latest() instead of hy_query_latest_by_arch()\r\n  2. just pick the first pkg if multiple packages have the same version\r\n\r\nThe issue that #50 introduced is that multiple packages can be returned,\r\nnot necessarily of the same NEVR. Since we just picked whatever the\r\nfirst package in the array was, we would sometimes be choosing older\r\npackages.\r\n\r\nNow, with hy_query_filter_latest(), we just always pick the latest NEVR,\r\nregardless of the arch (so it should still cover cases where a pkg goes\r\nfrom noarch to not noarch).\r\n\r\nResolves: #120","created_at":"2016-05-12T14:40:33Z","updated_at":"2016-05-12T14:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121/commits","review_comments_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121/comments","review_comment_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121/comments","statuses_url":"https://api.github.com/repos/rpm-software-management/libhif/statuses/a875e79c21af2c2cd638e93012c927aab1f390f0","head":{"label":"jlebon:pr/fix-install","ref":"pr/fix-install","sha":"a875e79c21af2c2cd638e93012c927aab1f390f0","user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars.githubusercontent.com/u/11934099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"repo":{"id":51614653,"name":"libhif","full_name":"jlebon/libhif","owner":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars.githubusercontent.com/u/11934099?v=3","gravatar_id":"","url":"https://api.github.com/users/jlebon","html_url":"https://github.com/jlebon","followers_url":"https://api.github.com/users/jlebon/followers","following_url":"https://api.github.com/users/jlebon/following{/other_user}","gists_url":"https://api.github.com/users/jlebon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlebon/subscriptions","organizations_url":"https://api.github.com/users/jlebon/orgs","repos_url":"https://api.github.com/users/jlebon/repos","events_url":"https://api.github.com/users/jlebon/events{/privacy}","received_events_url":"https://api.github.com/users/jlebon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlebon/libhif","description":"Simple package manager built on top of hawkey and librepo","fork":true,"url":"https://api.github.com/repos/jlebon/libhif","forks_url":"https://api.github.com/repos/jlebon/libhif/forks","keys_url":"https://api.github.com/repos/jlebon/libhif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlebon/libhif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlebon/libhif/teams","hooks_url":"https://api.github.com/repos/jlebon/libhif/hooks","issue_events_url":"https://api.github.com/repos/jlebon/libhif/issues/events{/number}","events_url":"https://api.github.com/repos/jlebon/libhif/events","assignees_url":"https://api.github.com/repos/jlebon/libhif/assignees{/user}","branches_url":"https://api.github.com/repos/jlebon/libhif/branches{/branch}","tags_url":"https://api.github.com/repos/jlebon/libhif/tags","blobs_url":"https://api.github.com/repos/jlebon/libhif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlebon/libhif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlebon/libhif/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlebon/libhif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlebon/libhif/statuses/{sha}","languages_url":"https://api.github.com/repos/jlebon/libhif/languages","stargazers_url":"https://api.github.com/repos/jlebon/libhif/stargazers","contributors_url":"https://api.github.com/repos/jlebon/libhif/contributors","subscribers_url":"https://api.github.com/repos/jlebon/libhif/subscribers","subscription_url":"https://api.github.com/repos/jlebon/libhif/subscription","commits_url":"https://api.github.com/repos/jlebon/libhif/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlebon/libhif/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlebon/libhif/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlebon/libhif/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlebon/libhif/contents/{+path}","compare_url":"https://api.github.com/repos/jlebon/libhif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlebon/libhif/merges","archive_url":"https://api.github.com/repos/jlebon/libhif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlebon/libhif/downloads","issues_url":"https://api.github.com/repos/jlebon/libhif/issues{/number}","pulls_url":"https://api.github.com/repos/jlebon/libhif/pulls{/number}","milestones_url":"https://api.github.com/repos/jlebon/libhif/milestones{/number}","notifications_url":"https://api.github.com/repos/jlebon/libhif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlebon/libhif/labels{/name}","releases_url":"https://api.github.com/repos/jlebon/libhif/releases{/id}","deployments_url":"https://api.github.com/repos/jlebon/libhif/deployments","created_at":"2016-02-12T20:32:27Z","updated_at":"2016-02-12T20:32:28Z","pushed_at":"2016-05-12T14:40:10Z","git_url":"git://github.com/jlebon/libhif.git","ssh_url":"git@github.com:jlebon/libhif.git","clone_url":"https://github.com/jlebon/libhif.git","svn_url":"https://github.com/jlebon/libhif","homepage":null,"size":3307,"stargazers_count":0,"watchers_count":0,"language":"C","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":"rpm-software-management:master","ref":"master","sha":"93863a83d337a1b8ffbced52c926442a525862a1","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":18206372,"name":"libhif","full_name":"rpm-software-management/libhif","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/libhif","description":"Simple package manager built on top of hawkey and librepo","fork":false,"url":"https://api.github.com/repos/rpm-software-management/libhif","forks_url":"https://api.github.com/repos/rpm-software-management/libhif/forks","keys_url":"https://api.github.com/repos/rpm-software-management/libhif/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpm-software-management/libhif/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpm-software-management/libhif/teams","hooks_url":"https://api.github.com/repos/rpm-software-management/libhif/hooks","issue_events_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/events{/number}","events_url":"https://api.github.com/repos/rpm-software-management/libhif/events","assignees_url":"https://api.github.com/repos/rpm-software-management/libhif/assignees{/user}","branches_url":"https://api.github.com/repos/rpm-software-management/libhif/branches{/branch}","tags_url":"https://api.github.com/repos/rpm-software-management/libhif/tags","blobs_url":"https://api.github.com/repos/rpm-software-management/libhif/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpm-software-management/libhif/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpm-software-management/libhif/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpm-software-management/libhif/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpm-software-management/libhif/statuses/{sha}","languages_url":"https://api.github.com/repos/rpm-software-management/libhif/languages","stargazers_url":"https://api.github.com/repos/rpm-software-management/libhif/stargazers","contributors_url":"https://api.github.com/repos/rpm-software-management/libhif/contributors","subscribers_url":"https://api.github.com/repos/rpm-software-management/libhif/subscribers","subscription_url":"https://api.github.com/repos/rpm-software-management/libhif/subscription","commits_url":"https://api.github.com/repos/rpm-software-management/libhif/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpm-software-management/libhif/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpm-software-management/libhif/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpm-software-management/libhif/contents/{+path}","compare_url":"https://api.github.com/repos/rpm-software-management/libhif/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpm-software-management/libhif/merges","archive_url":"https://api.github.com/repos/rpm-software-management/libhif/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpm-software-management/libhif/downloads","issues_url":"https://api.github.com/repos/rpm-software-management/libhif/issues{/number}","pulls_url":"https://api.github.com/repos/rpm-software-management/libhif/pulls{/number}","milestones_url":"https://api.github.com/repos/rpm-software-management/libhif/milestones{/number}","notifications_url":"https://api.github.com/repos/rpm-software-management/libhif/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpm-software-management/libhif/labels{/name}","releases_url":"https://api.github.com/repos/rpm-software-management/libhif/releases{/id}","deployments_url":"https://api.github.com/repos/rpm-software-management/libhif/deployments","created_at":"2014-03-28T09:00:31Z","updated_at":"2016-04-29T09:50:05Z","pushed_at":"2016-05-11T15:13:52Z","git_url":"git://github.com/rpm-software-management/libhif.git","ssh_url":"git@github.com:rpm-software-management/libhif.git","clone_url":"https://github.com/rpm-software-management/libhif.git","svn_url":"https://github.com/rpm-software-management/libhif","homepage":null,"size":3492,"stargazers_count":16,"watchers_count":16,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":19,"forks":22,"open_issues":19,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121"},"html":{"href":"https://github.com/rpm-software-management/libhif/pull/121"},"issue":{"href":"https://api.github.com/repos/rpm-software-management/libhif/issues/121"},"comments":{"href":"https://api.github.com/repos/rpm-software-management/libhif/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/rpm-software-management/libhif/statuses/a875e79c21af2c2cd638e93012c927aab1f390f0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":24,"deletions":28,"changed_files":1}}