{"action":"created","issue":{"url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121","repository_url":"https://api.github.com/repos/rpm-software-management/libhif","labels_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121/comments","events_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121/events","html_url":"https://github.com/rpm-software-management/libhif/pull/121","id":154499681,"number":121,"title":"[merged] 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},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rpm-software-management/libhif/milestones/1","html_url":"https://github.com/rpm-software-management/libhif/milestones/0.7.0","labels_url":"https://api.github.com/repos/rpm-software-management/libhif/milestones/1/labels","id":1731599,"number":1,"title":"0.7.0","description":"","creator":{"login":"ignatenkobrain","id":2866862,"avatar_url":"https://avatars.githubusercontent.com/u/2866862?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatenkobrain","html_url":"https://github.com/ignatenkobrain","followers_url":"https://api.github.com/users/ignatenkobrain/followers","following_url":"https://api.github.com/users/ignatenkobrain/following{/other_user}","gists_url":"https://api.github.com/users/ignatenkobrain/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatenkobrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatenkobrain/subscriptions","organizations_url":"https://api.github.com/users/ignatenkobrain/orgs","repos_url":"https://api.github.com/users/ignatenkobrain/repos","events_url":"https://api.github.com/users/ignatenkobrain/events{/privacy}","received_events_url":"https://api.github.com/users/ignatenkobrain/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":13,"state":"open","created_at":"2016-04-26T10:45:00Z","updated_at":"2016-05-13T09:16:55Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2016-05-12T14:40:33Z","updated_at":"2016-05-16T14:35:52Z","closed_at":"2016-05-13T08:47:44Z","pull_request":{"url":"https://api.github.com/repos/rpm-software-management/libhif/pulls/121","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"},"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"},"comment":{"url":"https://api.github.com/repos/rpm-software-management/libhif/issues/comments/219441137","html_url":"https://github.com/rpm-software-management/libhif/pull/121#issuecomment-219441137","issue_url":"https://api.github.com/repos/rpm-software-management/libhif/issues/121","id":219441137,"user":{"login":"jsilhan","id":5243763,"avatar_url":"https://avatars.githubusercontent.com/u/5243763?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilhan","html_url":"https://github.com/jsilhan","followers_url":"https://api.github.com/users/jsilhan/followers","following_url":"https://api.github.com/users/jsilhan/following{/other_user}","gists_url":"https://api.github.com/users/jsilhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilhan/subscriptions","organizations_url":"https://api.github.com/users/jsilhan/orgs","repos_url":"https://api.github.com/users/jsilhan/repos","events_url":"https://api.github.com/users/jsilhan/events{/privacy}","received_events_url":"https://api.github.com/users/jsilhan/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T14:35:52Z","updated_at":"2016-05-16T14:35:52Z","body":"@jlebon `hif_install_context` is used for updates too? I don't know what exactly you expect from this function. DNF skips packages (not specified with version) that are already installed and requested to be installed which is IMO right.\r\n\r\nFor updates you would have to use `hy_goal_upgrade` but `noarch` -> `system arch` update would still not worked.\r\n\r\n```\r\nrepo system 0 testtags <inline>\r\n#>=Pkg: A 1 1 x86_64\r\n#>=Pkg: B 1 1 noarch\r\n#>=Pkg: C 1 1 i686\r\n#>=Pkg: D 1 1 noarch\r\nrepo available 0 testtags <inline>\r\n#>=Pkg: A 1 2 noarch\r\n#>=Pkg: A 1 2 x86_64\r\n#>=Pkg: C 1 2 noarch\r\n#>=Pkg: D 1 2 i686\r\nsystem x86_64 rpm system\r\npoolflags implicitobsoleteusescolors\r\nsolverflags allowvendorchange keepexplicitobsoletes bestobeypolicy keeporphans yumobsoletes\r\njob update name A\r\njob update name B\r\njob update name C\r\nresult transaction,problems <inline>\r\n#>upgrade A-1-1.x86_64@system A-1-2.noarch@available\r\n#>upgrade C-1-1.i686@system C-1-2.noarch@available\r\n```"}}