[Merge] ~tormodvolden/update-manager:pkg_name_heur into update-manager:main

Tormod Volden mp+467153 at code.launchpad.net
Sat Jun 8 20:20:18 UTC 2024


Tormod Volden has proposed merging ~tormodvolden/update-manager:pkg_name_heur into update-manager:main.

Commit message:
Add more heuristics for package name to application matching
    
Whereas the pkg.name is typically all lowercase, the desktop file application name can have mixed case and otherwise match perfectly.
    
Additionally the desktop file application_id may have a domain hierarchy prefix, so add a small score for matching the last component.

Requested reviews:
  Ubuntu Core Development Team (ubuntu-core-dev)

For more details, see:
https://code.launchpad.net/~tormodvolden/update-manager/+git/update-manager/+merge/467153

An example is the package "kicad" which gets displayed as "KiCad Image Converter", this coming from a desktop file having application_id org.kicad.bitmap2component, whereas the correct desktop file has application_id org.kicad.kicad and application name "KiCad".

In this patch I am adding two heuristics, either of them would fix the KiCad case, but both make sense.
-- 
Your team Ubuntu Core Development Team is requested to review the proposed merge of ~tormodvolden/update-manager:pkg_name_heur into update-manager:main.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 505 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20240608/c475982d/attachment.diff>


More information about the Ubuntu-reviews mailing list