{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1274","repository_url":"https://api.github.com/repos/projectatomic/rpm-ostree","labels_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1274/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1274/comments","events_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1274/events","html_url":"https://github.com/projectatomic/rpm-ostree/pull/1274","id":300420819,"number":1274,"title":"lib/package: Handle arch pkg transitions","user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars3.githubusercontent.com/u/11934099?v=4","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-26T22:28:24Z","updated_at":"2018-02-27T13:55:35Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/pulls/1274","html_url":"https://github.com/projectatomic/rpm-ostree/pull/1274","diff_url":"https://github.com/projectatomic/rpm-ostree/pull/1274.diff","patch_url":"https://github.com/projectatomic/rpm-ostree/pull/1274.patch"},"body":"Let's try to match expectations a bit from the dnf/yum world and\r\ndescribe e.g. a `noarch` package become archful as an upgrade rather\r\nthan a removal and an addition. This was originally implicitly supported\r\n(before PR #1230) by the fact that we didn't compare arches at all (and\r\nin fact, arches don't even show up in a `db diff` output for modified\r\npackages).\r\n\r\nWe bring this back here, but only in the simple case that it's a single\r\npackage. We still don't try to do any fancy handling for packages of the\r\nsame name.\r\n\r\nCloses: #1272"},"comment":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/comments/368885255","html_url":"https://github.com/projectatomic/rpm-ostree/pull/1274#issuecomment-368885255","issue_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1274","id":368885255,"user":{"login":"jlebon","id":11934099,"avatar_url":"https://avatars3.githubusercontent.com/u/11934099?v=4","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},"created_at":"2018-02-27T13:55:35Z","updated_at":"2018-02-27T13:55:35Z","author_association":"MEMBER","body":">  If you say that changing arch is reported as a add/remove instead of as an update, then that is perfectly fine with us.\r\n\r\nYeah, I deliberated a bit on this. In the end, I went for (what I think) would be the least surprising for users coming from a traditional yum/dnf-managed system. E.g. assuming the newer package properly `Obsoletes` the previous one, a simple `yum/dnf update` would pick up these transitions. I'm open to changing this if there are good reasons to *not* match that.\r\n\r\n> The appearance of the \"cockpit-system\" name is unexpected.\r\n\r\nRight, that part was due to https://github.com/projectatomic/rpm-ostree/pull/1274/commits/ce830401729c18abb6513b1722d8f479516b9085. It basically made the diff nonsensical! :)"}}
{"actor":{"display_login":"jlebon"}}