Skip to content

Commit

Permalink
packagekit: drop bugs/cve_urls workaround
Browse files Browse the repository at this point in the history
Manual testing has found that the package data these days is probably
formatted and only contains urls.
  • Loading branch information
jelly authored and martinpitt committed Aug 30, 2024
1 parent 436b9bf commit 188e1b5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/packagekit/updates.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1134,13 +1134,6 @@ class OsUpdates extends React.Component {
}

u.vendor_urls = vendor_urls;
// HACK: bug_urls and cve_urls also contain titles, in a not-quite-predictable order; ignore them,
// only pick out http[s] URLs (https://bugs.freedesktop.org/show_bug.cgi?id=104552)
if (bug_urls)
bug_urls = bug_urls.filter(url => url.match(/^https?:\/\//));
if (cve_urls)
cve_urls = cve_urls.filter(url => url.match(/^https?:\/\//));

u.description = this.removeHeading(update_text) || changelog;
if (update_text)
u.markdown = true;
Expand Down

0 comments on commit 188e1b5

Please sign in to comment.