Vinzenz Feenstra has uploaded a new change for review. Change subject: Additional filtering data point for updates ......................................................................
Additional filtering data point for updates Updates by Microsoft usually contain a 'HelpLink' field which points to somewhere at http://support.microsoft.com This patch utilizes this fact to additionally detect otherwise undetected items to filter. Change-Id: Iee20995c2b832e5cda42838c8a2965633785f69c Signed-off-by: Vinzenz Feenstra <vfeen...@redhat.com> --- M ovirt-guest-agent/GuestAgentWin32.py 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-guest-agent refs/changes/96/29596/1 diff --git a/ovirt-guest-agent/GuestAgentWin32.py b/ovirt-guest-agent/GuestAgentWin32.py index 910c910..21d9fb5 100644 --- a/ovirt-guest-agent/GuestAgentWin32.py +++ b/ovirt-guest-agent/GuestAgentWin32.py @@ -320,6 +320,9 @@ def _is_item_update(self, reg_key): RTPATTERNS = ("Hotfix", "Security Update", "Software Update", "Update") + help_link = QueryStringValue(reg_key, u'HelpLink') + if help_link.startswith('http://support.microsoft.com'): + return True release_type = QueryStringValue(reg_key, u'ReleaseType') for pattern in RTPATTERNS: if release_type.find(pattern) >= 0: -- To view, visit http://gerrit.ovirt.org/29596 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iee20995c2b832e5cda42838c8a2965633785f69c Gerrit-PatchSet: 1 Gerrit-Project: ovirt-guest-agent Gerrit-Branch: master Gerrit-Owner: Vinzenz Feenstra <vfeen...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches