{"action":"created","comment":{"url":"https://api.github.com/repos/rpm-software-management/dnf/pulls/comments/88453231","pull_request_review_id":9025690,"id":88453231,"diff_hunk":"@@ -1850,6 +1855,44 @@ def handle_upgrade(new_nevra, old_nevra, obsoleted_nevras):\n             else:\n                 assert False\n \n+    def _merge_update_filters(self, q, pkg_spec=None):\n+        \"\"\"\n+        Merge Queries in _update_filters and return intersection with q Query\n+        @param q: Query\n+        @return: Query\n+        \"\"\"\n+        if not self._update_security_filters:\n+            return q\n+        assert len(self._update_security_filters.keys()) == 1\n+        for key, filters in self._update_security_filters.items():\n+            assert len(filters) > 0\n+            t = filters[0]\n+            for query in filters[1:]:\n+                t = t.union(query)\n+            del self._update_security_filters[key]\n+            self._update_security_filters['minimal'] = [t]\n+            t = q.intersection(t)\n+            if len(t) == 0:\n+                count = len(q._name_dict().keys())\n+                if pkg_spec is None:\n+                    msg1 = _(\"No security updates needed, but {} update \"\n+                            \"available\").format(count)\n+                    msg2 = _(\"No security updates needed, but {} updates \"\n+                             \"available\").format(count)\n+                    logger.warning(P_(msg1, msg2, count))\n+                else:\n+                    msg1 = _('No security updates needed for \"{}\", but {} '\n+                            'update available').format(pkg_spec, count)","path":"dnf/base.py","position":108,"original_position":108,"commit_id":"8ac7984b17ea1bfc79d13aba18b462e78ba7c50a","original_commit_id":"8ac7984b17ea1bfc79d13aba18b462e78ba7c50a","user":{"login":"dnf-bot","id":10563235,"avatar_url":"https://avatars.githubusercontent.com/u/10563235?v=3","gravatar_id":"","url":"https://api.github.com/users/dnf-bot","html_url":"https://github.com/dnf-bot","followers_url":"https://api.github.com/users/dnf-bot/followers","following_url":"https://api.github.com/users/dnf-bot/following{/other_user}","gists_url":"https://api.github.com/users/dnf-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/dnf-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnf-bot/subscriptions","organizations_url":"https://api.github.com/users/dnf-bot/orgs","repos_url":"https://api.github.com/users/dnf-bot/repos","events_url":"https://api.github.com/users/dnf-bot/events{/privacy}","received_events_url":"https://api.github.com/users/dnf-bot/received_events","type":"User","site_admin":false},"body":"__[flake8]__\n* [E128] continuation line under-indented for visual indent\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-11-17T13:43:07Z","updated_at":"2016-11-17T13:43:07Z","html_url":"https://github.com/rpm-software-management/dnf/pull/649#discussion_r88453231","pull_request_url":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649","_links":{"self":{"href":"https://api.github.com/repos/rpm-software-management/dnf/pulls/comments/88453231"},"html":{"href":"https://github.com/rpm-software-management/dnf/pull/649#discussion_r88453231"},"pull_request":{"href":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649"}}},"pull_request":{"url":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649","id":92332656,"html_url":"https://github.com/rpm-software-management/dnf/pull/649","diff_url":"https://github.com/rpm-software-management/dnf/pull/649.diff","patch_url":"https://github.com/rpm-software-management/dnf/pull/649.patch","issue_url":"https://api.github.com/repos/rpm-software-management/dnf/issues/649","number":649,"state":"open","locked":false,"title":"Security options for upgrade ","user":{"login":"j-mracek","id":12737303,"avatar_url":"https://avatars.githubusercontent.com/u/12737303?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mracek","html_url":"https://github.com/j-mracek","followers_url":"https://api.github.com/users/j-mracek/followers","following_url":"https://api.github.com/users/j-mracek/following{/other_user}","gists_url":"https://api.github.com/users/j-mracek/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mracek/subscriptions","organizations_url":"https://api.github.com/users/j-mracek/orgs","repos_url":"https://api.github.com/users/j-mracek/repos","events_url":"https://api.github.com/users/j-mracek/events{/privacy}","received_events_url":"https://api.github.com/users/j-mracek/received_events","type":"User","site_admin":false},"body":"Requires: https://github.com/rpm-software-management/libhif/pull/209","created_at":"2016-11-04T12:39:04Z","updated_at":"2016-11-17T13:43:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73493b5864f071f949f5c5dcf7e1df60fc291d18","assignee":{"login":"stepasm","id":20244186,"avatar_url":"https://avatars.githubusercontent.com/u/20244186?v=3","gravatar_id":"","url":"https://api.github.com/users/stepasm","html_url":"https://github.com/stepasm","followers_url":"https://api.github.com/users/stepasm/followers","following_url":"https://api.github.com/users/stepasm/following{/other_user}","gists_url":"https://api.github.com/users/stepasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stepasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepasm/subscriptions","organizations_url":"https://api.github.com/users/stepasm/orgs","repos_url":"https://api.github.com/users/stepasm/repos","events_url":"https://api.github.com/users/stepasm/events{/privacy}","received_events_url":"https://api.github.com/users/stepasm/received_events","type":"User","site_admin":false},"assignees":[{"login":"stepasm","id":20244186,"avatar_url":"https://avatars.githubusercontent.com/u/20244186?v=3","gravatar_id":"","url":"https://api.github.com/users/stepasm","html_url":"https://github.com/stepasm","followers_url":"https://api.github.com/users/stepasm/followers","following_url":"https://api.github.com/users/stepasm/following{/other_user}","gists_url":"https://api.github.com/users/stepasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stepasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepasm/subscriptions","organizations_url":"https://api.github.com/users/stepasm/orgs","repos_url":"https://api.github.com/users/stepasm/repos","events_url":"https://api.github.com/users/stepasm/events{/privacy}","received_events_url":"https://api.github.com/users/stepasm/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649/commits","review_comments_url":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649/comments","review_comment_url":"https://api.github.com/repos/rpm-software-management/dnf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpm-software-management/dnf/issues/649/comments","statuses_url":"https://api.github.com/repos/rpm-software-management/dnf/statuses/8ac7984b17ea1bfc79d13aba18b462e78ba7c50a","head":{"label":"j-mracek:security","ref":"security","sha":"8ac7984b17ea1bfc79d13aba18b462e78ba7c50a","user":{"login":"j-mracek","id":12737303,"avatar_url":"https://avatars.githubusercontent.com/u/12737303?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mracek","html_url":"https://github.com/j-mracek","followers_url":"https://api.github.com/users/j-mracek/followers","following_url":"https://api.github.com/users/j-mracek/following{/other_user}","gists_url":"https://api.github.com/users/j-mracek/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mracek/subscriptions","organizations_url":"https://api.github.com/users/j-mracek/orgs","repos_url":"https://api.github.com/users/j-mracek/repos","events_url":"https://api.github.com/users/j-mracek/events{/privacy}","received_events_url":"https://api.github.com/users/j-mracek/received_events","type":"User","site_admin":false},"repo":{"id":42112476,"name":"dnf","full_name":"j-mracek/dnf","owner":{"login":"j-mracek","id":12737303,"avatar_url":"https://avatars.githubusercontent.com/u/12737303?v=3","gravatar_id":"","url":"https://api.github.com/users/j-mracek","html_url":"https://github.com/j-mracek","followers_url":"https://api.github.com/users/j-mracek/followers","following_url":"https://api.github.com/users/j-mracek/following{/other_user}","gists_url":"https://api.github.com/users/j-mracek/gists{/gist_id}","starred_url":"https://api.github.com/users/j-mracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-mracek/subscriptions","organizations_url":"https://api.github.com/users/j-mracek/orgs","repos_url":"https://api.github.com/users/j-mracek/repos","events_url":"https://api.github.com/users/j-mracek/events{/privacy}","received_events_url":"https://api.github.com/users/j-mracek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/j-mracek/dnf","description":"dnf is a package manager based on yum and libsolv","fork":true,"url":"https://api.github.com/repos/j-mracek/dnf","forks_url":"https://api.github.com/repos/j-mracek/dnf/forks","keys_url":"https://api.github.com/repos/j-mracek/dnf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j-mracek/dnf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j-mracek/dnf/teams","hooks_url":"https://api.github.com/repos/j-mracek/dnf/hooks","issue_events_url":"https://api.github.com/repos/j-mracek/dnf/issues/events{/number}","events_url":"https://api.github.com/repos/j-mracek/dnf/events","assignees_url":"https://api.github.com/repos/j-mracek/dnf/assignees{/user}","branches_url":"https://api.github.com/repos/j-mracek/dnf/branches{/branch}","tags_url":"https://api.github.com/repos/j-mracek/dnf/tags","blobs_url":"https://api.github.com/repos/j-mracek/dnf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j-mracek/dnf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j-mracek/dnf/git/refs{/sha}","trees_url":"https://api.github.com/repos/j-mracek/dnf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j-mracek/dnf/statuses/{sha}","languages_url":"https://api.github.com/repos/j-mracek/dnf/languages","stargazers_url":"https://api.github.com/repos/j-mracek/dnf/stargazers","contributors_url":"https://api.github.com/repos/j-mracek/dnf/contributors","subscribers_url":"https://api.github.com/repos/j-mracek/dnf/subscribers","subscription_url":"https://api.github.com/repos/j-mracek/dnf/subscription","commits_url":"https://api.github.com/repos/j-mracek/dnf/commits{/sha}","git_commits_url":"https://api.github.com/repos/j-mracek/dnf/git/commits{/sha}","comments_url":"https://api.github.com/repos/j-mracek/dnf/comments{/number}","issue_comment_url":"https://api.github.com/repos/j-mracek/dnf/issues/comments{/number}","contents_url":"https://api.github.com/repos/j-mracek/dnf/contents/{+path}","compare_url":"https://api.github.com/repos/j-mracek/dnf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j-mracek/dnf/merges","archive_url":"https://api.github.com/repos/j-mracek/dnf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j-mracek/dnf/downloads","issues_url":"https://api.github.com/repos/j-mracek/dnf/issues{/number}","pulls_url":"https://api.github.com/repos/j-mracek/dnf/pulls{/number}","milestones_url":"https://api.github.com/repos/j-mracek/dnf/milestones{/number}","notifications_url":"https://api.github.com/repos/j-mracek/dnf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j-mracek/dnf/labels{/name}","releases_url":"https://api.github.com/repos/j-mracek/dnf/releases{/id}","deployments_url":"https://api.github.com/repos/j-mracek/dnf/deployments","created_at":"2015-09-08T13:03:38Z","updated_at":"2016-02-26T11:22:06Z","pushed_at":"2016-11-17T13:42:55Z","git_url":"git://github.com/j-mracek/dnf.git","ssh_url":"git@github.com:j-mracek/dnf.git","clone_url":"https://github.com/j-mracek/dnf.git","svn_url":"https://github.com/j-mracek/dnf","homepage":"","size":38310,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"rpm-software-management:master","ref":"master","sha":"070435ce07a2916158ecb2fa718b9bfa59d7d4b0","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":3671909,"name":"dnf","full_name":"rpm-software-management/dnf","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/dnf","description":"dnf is a package manager based on yum and libsolv","fork":false,"url":"https://api.github.com/repos/rpm-software-management/dnf","forks_url":"https://api.github.com/repos/rpm-software-management/dnf/forks","keys_url":"https://api.github.com/repos/rpm-software-management/dnf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpm-software-management/dnf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpm-software-management/dnf/teams","hooks_url":"https://api.github.com/repos/rpm-software-management/dnf/hooks","issue_events_url":"https://api.github.com/repos/rpm-software-management/dnf/issues/events{/number}","events_url":"https://api.github.com/repos/rpm-software-management/dnf/events","assignees_url":"https://api.github.com/repos/rpm-software-management/dnf/assignees{/user}","branches_url":"https://api.github.com/repos/rpm-software-management/dnf/branches{/branch}","tags_url":"https://api.github.com/repos/rpm-software-management/dnf/tags","blobs_url":"https://api.github.com/repos/rpm-software-management/dnf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpm-software-management/dnf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpm-software-management/dnf/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpm-software-management/dnf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpm-software-management/dnf/statuses/{sha}","languages_url":"https://api.github.com/repos/rpm-software-management/dnf/languages","stargazers_url":"https://api.github.com/repos/rpm-software-management/dnf/stargazers","contributors_url":"https://api.github.com/repos/rpm-software-management/dnf/contributors","subscribers_url":"https://api.github.com/repos/rpm-software-management/dnf/subscribers","subscription_url":"https://api.github.com/repos/rpm-software-management/dnf/subscription","commits_url":"https://api.github.com/repos/rpm-software-management/dnf/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpm-software-management/dnf/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpm-software-management/dnf/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpm-software-management/dnf/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpm-software-management/dnf/contents/{+path}","compare_url":"https://api.github.com/repos/rpm-software-management/dnf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpm-software-management/dnf/merges","archive_url":"https://api.github.com/repos/rpm-software-management/dnf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpm-software-management/dnf/downloads","issues_url":"https://api.github.com/repos/rpm-software-management/dnf/issues{/number}","pulls_url":"https://api.github.com/repos/rpm-software-management/dnf/pulls{/number}","milestones_url":"https://api.github.com/repos/rpm-software-management/dnf/milestones{/number}","notifications_url":"https://api.github.com/repos/rpm-software-management/dnf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpm-software-management/dnf/labels{/name}","releases_url":"https://api.github.com/repos/rpm-software-management/dnf/releases{/id}","deployments_url":"https://api.github.com/repos/rpm-software-management/dnf/deployments","created_at":"2012-03-09T15:31:09Z","updated_at":"2016-11-15T18:14:14Z","pushed_at":"2016-11-17T13:42:56Z","git_url":"git://github.com/rpm-software-management/dnf.git","ssh_url":"git@github.com:rpm-software-management/dnf.git","clone_url":"https://github.com/rpm-software-management/dnf.git","svn_url":"https://github.com/rpm-software-management/dnf","homepage":"","size":42735,"stargazers_count":356,"watchers_count":356,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":133,"mirror_url":null,"open_issues_count":18,"forks":133,"open_issues":18,"watchers":356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649"},"html":{"href":"https://github.com/rpm-software-management/dnf/pull/649"},"issue":{"href":"https://api.github.com/repos/rpm-software-management/dnf/issues/649"},"comments":{"href":"https://api.github.com/repos/rpm-software-management/dnf/issues/649/comments"},"review_comments":{"href":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649/comments"},"review_comment":{"href":"https://api.github.com/repos/rpm-software-management/dnf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpm-software-management/dnf/pulls/649/commits"},"statuses":{"href":"https://api.github.com/repos/rpm-software-management/dnf/statuses/8ac7984b17ea1bfc79d13aba18b462e78ba7c50a"}}}}
{"actor":{"display_login":"dnf-bot"}}