From 0c857dd873dbc9266f03c47ff35eb3b7d45afbf4 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Mon, 4 Jan 2016 14:42:46 +0100 Subject: [PATCH] fix title in dsa-watcher --- plugins/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/commands.py b/plugins/commands.py index a917fcc..742ab57 100644 --- a/plugins/commands.py +++ b/plugins/commands.py @@ -558,10 +558,14 @@ def command_dsa_watcher(argv=None, **_): dsa_about_list = xmldoc.xpath('//purl:item/@rdf:about', namespaces=nsmap) for dsa_about in reversed(dsa_about_list): dsa_id = get_id_from_about_string(dsa_about) + title = xmldoc.xpath( + '//purl:item[@rdf:about="{}"]/purl:title/text()'.format(dsa_about), + namespaces=nsmap + )[0] if after and dsa_id <= after: continue else: - yield dsa_id, str(dsa_about).replace(' - security update', '') + yield dsa_id, str(title).replace(' - security update', '') out = [] last_dsa = config.runtimeconf_deepget('plugins.dsa-watcher.last_dsa')