{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-infra/fedora-packages/issues/256","repository_url":"https://api.github.com/repos/fedora-infra/fedora-packages","labels_url":"https://api.github.com/repos/fedora-infra/fedora-packages/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/fedora-infra/fedora-packages/issues/256/comments","events_url":"https://api.github.com/repos/fedora-infra/fedora-packages/issues/256/events","html_url":"https://github.com/fedora-infra/fedora-packages/issues/256","id":189813201,"number":256,"title":"[yum] AttributeError: FakeRepository instance has no attribute 'compare_providers_priority'","user":{"login":"drmuey","id":1204812,"avatar_url":"https://avatars.githubusercontent.com/u/1204812?v=3","gravatar_id":"","url":"https://api.github.com/users/drmuey","html_url":"https://github.com/drmuey","followers_url":"https://api.github.com/users/drmuey/followers","following_url":"https://api.github.com/users/drmuey/following{/other_user}","gists_url":"https://api.github.com/users/drmuey/gists{/gist_id}","starred_url":"https://api.github.com/users/drmuey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmuey/subscriptions","organizations_url":"https://api.github.com/users/drmuey/orgs","repos_url":"https://api.github.com/users/drmuey/repos","events_url":"https://api.github.com/users/drmuey/events{/privacy}","received_events_url":"https://api.github.com/users/drmuey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T19:16:21Z","updated_at":"2016-11-16T21:32:08Z","closed_at":null,"body":"This is not an issue in yum v3.2.29 but we are seeing it in v3.4.3.\r\n\r\nThe pseudo package “installed” is a FakeRepository object.\r\n\r\n```._compare_providers()``` in v3.4.3 now does:\r\n\r\n```\r\n# Respect the repository priority for each provider, the default is 80\r\n            pkgresults[po] += (100 - po.repo.compare_providers_priority) * 10\r\n            self.verbose_logger.log(logginglevels.DEBUG_4,\r\n                _('compare_providers_priority for %s is %s' % (po, po.repo.compare_providers_priority)))\r\n```\r\n\r\nthe problem being that the FakeRepository class does not have ```compare_providers_priority```.\r\n\r\nWe worked around this for now by doing this at the top of our library:\r\n\r\n```\r\nif not hasattr(yum.packages.FakeRepository, 'compare_providers_priority'):\r\n    yum.packages.FakeRepository.compare_providers_priority = 99\r\n```"},"comment":{"url":"https://api.github.com/repos/fedora-infra/fedora-packages/issues/comments/261078720","html_url":"https://github.com/fedora-infra/fedora-packages/issues/256#issuecomment-261078720","issue_url":"https://api.github.com/repos/fedora-infra/fedora-packages/issues/256","id":261078720,"user":{"login":"pypingou","id":1240038,"avatar_url":"https://avatars.githubusercontent.com/u/1240038?v=3","gravatar_id":"","url":"https://api.github.com/users/pypingou","html_url":"https://github.com/pypingou","followers_url":"https://api.github.com/users/pypingou/followers","following_url":"https://api.github.com/users/pypingou/following{/other_user}","gists_url":"https://api.github.com/users/pypingou/gists{/gist_id}","starred_url":"https://api.github.com/users/pypingou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pypingou/subscriptions","organizations_url":"https://api.github.com/users/pypingou/orgs","repos_url":"https://api.github.com/users/pypingou/repos","events_url":"https://api.github.com/users/pypingou/events{/privacy}","received_events_url":"https://api.github.com/users/pypingou/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T21:32:08Z","updated_at":"2016-11-16T21:32:08Z","body":"Thanks for your report but this is however, the wrong place for such bug report.\r\n\r\nThis issue tracker is about the web application running at: https://apps.fedoraproject.org/packages/\r\n\r\nYour ticket should be open in https://bugzilla.redhat.com"}}
{"actor":{"display_login":"pypingou"}}